From 4ef69642e14a2d44008e9d7cf72f0d81fb149598 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 1 Nov 2009 21:00:19 +0000 Subject: [PATCH] trick automake/libtool into NOT linking with g++ on non-W32 systems -- hopefully without breaking W32 build --- src/util/Makefile.am | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 9c9802847..822ed19a6 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -3,8 +3,17 @@ INCLUDES = -I$(top_srcdir)/src/include plugindir = $(libdir)/gnunet if MINGW - WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -luuid -liconv -lstdc++ -lcomdlg32 -lgdi32 - WINSRC = win.cc winproc.c +noinst_LIBRARIES = \ + libgnunetutilwin.a +libgnunetutilwin_a_SOURCES = \ + win.cc \ + winproc.c +libgnunetutilwin_a_LDFLAGS = \ + -Wl,--no-undefined -Wl,--export-all-symbols +libgnunetutilwin_a_LIBADD = \ + -lole32 -lshell32 -luuid -liconv -lstdc++ \ + -lcomdlg32 -lgdi32 +WINLIB = libgnunetutilwin.a endif if USE_COVERAGE @@ -59,12 +68,12 @@ libgnunetutil_la_SOURCES = \ libgnunetutil_la_LIBADD = \ - $(GCLIBADD) \ + $(GCLIBADD) $(WINLIB) \ $(LIBGCRYPT_LIBS) \ -lgmp -lltdl -lz -lextractor $(XLIB) libgnunetutil_la_LDFLAGS = \ - $(GN_LIB_LDFLAGS) $(WINFLAGS) \ + $(GN_LIB_LDFLAGS) \ -version-info 4:0:0 -- 2.25.1