build: Set no_undefined in Makefile.decl

This simplifies the code and - more importantly - fixes the cases like
in testsuite/reftests where the no_undefined definition was missing.

https://bugzilla.gnome.org/show_bug.cgi?id=736382
This commit is contained in:
Руслан Ижбулатов 2014-09-09 14:48:17 +00:00 committed by Benjamin Otte
parent 1741de47db
commit 45ab4ae09b
11 changed files with 5 additions and 38 deletions

View File

@ -26,6 +26,10 @@ SKIP_GDKTARGET = \
echo "Gtk+Tests:INFO: Skipping GUI tests for non-X11 target." echo "Gtk+Tests:INFO: Skipping GUI tests for non-X11 target."
endif endif
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
XVFB_START = \ XVFB_START = \
${XVFB} -help 2>/dev/null 1>&2 \ ${XVFB} -help 2>/dev/null 1>&2 \
&& XID=`for id in $(XIDS) ; do test -e /tmp/.X$$id-lock || { echo $$id; exit 0; }; done; exit 1` \ && XID=`for id in $(XIDS) ; do test -e /tmp/.X$$id-lock || { echo $$id; exit 0; }; done; exit 1` \

View File

@ -42,10 +42,6 @@ AM_CPPFLAGS = \
$(GTK_DEBUG_FLAGS) \ $(GTK_DEBUG_FLAGS) \
$(GDK_DEP_CFLAGS) $(GDK_DEP_CFLAGS)
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
# libtool stuff: set version and export symbols for resolving # libtool stuff: set version and export symbols for resolving
# since automake doesn't support conditionalized libsomething_la_LDFLAGS # since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here # we use the general approach here

View File

@ -79,10 +79,6 @@ AM_CPPFLAGS = \
$(GTK_DEP_CFLAGS) \ $(GTK_DEP_CFLAGS) \
$(INCLUDED_IMMODULE_DEFINE) $(INCLUDED_IMMODULE_DEFINE)
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32 if OS_WIN32
gtk_def = gtk.def gtk_def = gtk.def
gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def gtk_win32_symbols = -export-symbols $(srcdir)/gtk.def

View File

@ -1,9 +1,6 @@
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
EXTRA_DIST += gailutil.def EXTRA_DIST += gailutil.def
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32 if OS_WIN32
export_symbols = -export-symbols $(srcdir)/gailutil.def export_symbols = -export-symbols $(srcdir)/gailutil.def
gailutil.def: libgailutil-3.la gailutil.def: libgailutil-3.la

View File

@ -1,10 +1,6 @@
## Makefile.am for gtk+/modules/input ## Makefile.am for gtk+/modules/input
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/gdk \ -I$(top_srcdir)/gdk \

View File

@ -1,9 +1,5 @@
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends
backend_LTLIBRARIES = libprintbackend-cloudprint.la backend_LTLIBRARIES = libprintbackend-cloudprint.la

View File

@ -1,9 +1,5 @@
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/gtk \ -I$(top_srcdir)/gtk \

View File

@ -1,9 +1,5 @@
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends
backend_LTLIBRARIES = libprintbackend-file.la backend_LTLIBRARIES = libprintbackend-file.la

View File

@ -1,9 +1,5 @@
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/gtk \ -I$(top_srcdir)/gtk \

View File

@ -1,6 +1,4 @@
if OS_WIN32 include $(top_srcdir)/Makefile.decl
no_undefined = -no-undefined
endif
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir) \ -I$(top_srcdir) \

View File

@ -1,9 +1,5 @@
include $(top_srcdir)/Makefile.decl include $(top_srcdir)/Makefile.decl
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends backenddir = $(libdir)/gtk-3.0/$(GTK_BINARY_VERSION)/printbackends
backend_LTLIBRARIES = libprintbackend-test.la backend_LTLIBRARIES = libprintbackend-test.la