diff mbox series

[5/8,for,ZBar] Use -no-undefined for libzbargtk

Message ID 20190409123842.19600-6-lrn1986@gmail.com (mailing list archive)
State New, archived
Headers show
Series MinGW compatibility patches | expand

Commit Message

Руслан Ижбулатов April 9, 2019, 12:38 p.m. UTC
-no-undefined is required to build shlibs on Windows.
Doesn't hurt on other platforms either (unless a shlib is built
with undefined symbols by design, which is not the case here).

Signed-off-by: Руслан Ижбулатов <lrn1986@gmail.com>
---
 gtk/Makefile.am.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gtk/Makefile.am.inc b/gtk/Makefile.am.inc
index 406fd86..f7e8e6c 100644
--- a/gtk/Makefile.am.inc
+++ b/gtk/Makefile.am.inc
@@ -1,7 +1,7 @@ 
 lib_LTLIBRARIES += gtk/libzbargtk.la
 gtk_libzbargtk_la_CPPFLAGS = -Igtk $(GTK_CFLAGS) $(AM_CPPFLAGS)
 gtk_libzbargtk_la_LDFLAGS = -version-info $(ZGTK_LIB_VERSION) \
-    -export-symbols-regex "^zbar_gtk_.*" $(AM_LDFLAGS)
+    -export-symbols-regex "^zbar_gtk_.*" $(AM_LDFLAGS) -no-undefined
 gtk_libzbargtk_la_LIBADD = $(GTK_LIBS) zbar/libzbar.la $(AM_LIBADD)
 
 dist_gtk_libzbargtk_la_SOURCES = gtk/zbargtk.c gtk/zbargtkprivate.h