vcpkg/ports/libcanberra/undefined_reference.diff
Dawid Wróbel 30b217b1ed
[libcanberra] Linux static .pc fix & other improvements (#20782)
* [libcanberra] fix Linux static consumption

* [libcanberra] add Debian patches

* [libcanberra] make all backends features

* [libcanberra] bump port version

* [libcanberra] update versions
2021-10-20 15:29:23 -07:00

41 lines
1.1 KiB
Diff

Description: Fix FTBFS with binutils-gold
Author: Bart Martens <bartm@debian.org>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555081
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -341,6 +341,7 @@ libcanberra_gtk3_la_CFLAGS = \
$(GTK3_CFLAGS)
libcanberra_gtk3_la_LIBADD = \
$(GTK3_LIBS) \
+ -lX11 \
libcanberra.la
libcanberra_gtk3_la_LDFLAGS = \
-export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)
@@ -351,6 +352,8 @@ libcanberra_gtk3_module_la_CFLAGS = \
$(GTK3_CFLAGS)
libcanberra_gtk3_module_la_LIBADD = \
$(GTK3_LIBS) \
+ -lX11 \
+ -lgmodule-2.0 \
libcanberra.la \
libcanberra-gtk3.la
libcanberra_gtk3_module_la_LDFLAGS = \
@@ -379,6 +382,7 @@ libcanberra_gtk_la_CFLAGS = \
$(GTK_CFLAGS)
libcanberra_gtk_la_LIBADD = \
$(GTK_LIBS) \
+ -lX11 \
libcanberra.la
libcanberra_gtk_la_LDFLAGS = \
-export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)
@@ -389,6 +393,8 @@ libcanberra_gtk_module_la_CFLAGS = \
$(GTK_CFLAGS)
libcanberra_gtk_module_la_LIBADD = \
$(GTK_LIBS) \
+ -lX11 \
+ -lgmodule-2.0 \
libcanberra.la \
libcanberra-gtk.la
libcanberra_gtk_module_la_LDFLAGS = \