commit 323e868a0817d246cf110c1797fbc8b6f1afbe1d Author: Hib Eris Date: Sun Dec 21 18:31:00 2008 +0100 Fix compile warnings on auto imports for mingw32 diff --git a/configure.ac b/configure.ac index a1153d1..91ba247 100644 --- a/configure.ac +++ b/configure.ac @@ -28,15 +28,18 @@ AC_DEFINE([TEXTOUT_WORD_LIST], [1], [Enable word list support.]) dnl Check for OS specific flags win32_libs="" create_shared_lib="" +auto_import_flags="" case "$host_os" in mingw*) win32_libs="-lgdi32" create_shared_lib="-no-undefined" + auto_import_flags="-Wl,--enable-auto-import" ;; esac AC_SUBST(win32_libs) AC_SUBST(create_shared_lib) +AC_SUBST(auto_import_flags) ACX_PTHREAD() diff --git a/glib/Makefile.am b/glib/Makefile.am index 806a37a..faa85a6 100644 --- a/glib/Makefile.am +++ b/glib/Makefile.am @@ -98,7 +98,7 @@ libpoppler_glib_la_LIBADD = \ $(FONTCONFIG_LIBS) \ $(cairo_libs) -libpoppler_glib_la_LDFLAGS = -version-info 4:0:0 @create_shared_lib@ +libpoppler_glib_la_LDFLAGS = -version-info 4:0:0 @create_shared_lib@ @auto_import_flags@ if BUILD_WITH_GDK noinst_PROGRAMS = test-poppler-glib diff --git a/glib/demo/Makefile.am b/glib/demo/Makefile.am index 13bccb3..4c301de 100644 --- a/glib/demo/Makefile.am +++ b/glib/demo/Makefile.am @@ -6,6 +6,8 @@ INCLUDES = \ -DGTK_DISABLE_DEPRECATED \ $(POPPLER_GLIB_DISABLE_SINGLE_INCLUDES) +AM_LDFLAGS = @auto_import_flags@ + if BUILD_GTK_TEST noinst_PROGRAMS = poppler-glib-demo endif diff --git a/test/Makefile.am b/test/Makefile.am index 6abef19..8c873d3 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -47,6 +47,8 @@ INCLUDES = \ noinst_PROGRAMS = $(gtk_splash_test) $(gtk_cairo_test) $(pdf_inspector) $(perf_test) $(pdf_fullrewrite) +AM_LDFLAGS = @auto_import_flags@ + gtk_splash_test_SOURCES = \ gtk-splash-test.cc diff --git a/utils/Makefile.am b/utils/Makefile.am index 342fa73..19e8a20 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -33,6 +33,8 @@ LDADD = \ $(UTILS_LIBS) \ $(FONTCONFIG_LIBS) +AM_LDFLAGS = @auto_import_flags@ + bin_PROGRAMS = \ pdffonts \ pdfimages \