Fix gio tests makefile for W32
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 19 Jan 2013 07:50:28 +0000 (11:50 +0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Feb 2013 05:25:27 +0000 (00:25 -0500)
While compiling, libtool will say that undefined symbols are not allowed, and
will refuse to make you a dll. This is only one line, easy to miss. And it
doesn't prevent `make' from completing successfully.

The code this patch adds is from other Makefile.am files that use
$(no_undefined). It's absence in gio is, most likely, an oversight.

Fixes #692058

gio/tests/Makefile.am

index db73a65..d33b7f0 100644 (file)
@@ -154,6 +154,10 @@ if OS_WIN32
 TEST_PROGS += win32-streams
 endif
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
 actions_SOURCES   = actions.c gdbus-sessionbus.c gdbus-sessionbus.h
 
 unix_streams_LDADD       = $(LDADD) \