|
From: | Benjamin Lindner |
Subject: | Re: gnulib and automake |
Date: | Mon, 02 Nov 2009 21:04:44 +0100 |
User-agent: | Thunderbird 2.0.0.22 (Windows/20090605) |
Benjamin Lindner wrote:
John W. Eaton wrote:I updated the patch here: http://jweaton.org/automake-diffs.gz Please start with this newer version of the patch if you decide to try any further debugging.sure, I'll start a new clean trial and report back.
It seems that one prerequisite to get shared libraries built using libtool, one has to specify "-no-undefined" as libtool's link options. See e.g. http://readlist.com/lists/lists.sourceforge.net/mingw-users/0/3404.html
What it the correct way in automake to get this flag into the link options (preferably only for the *-*-mingw* platform)?
I now patch all makefile.in files, but these are generated (by automake I guess). I couldn't find the source for the link commands as
libcruft_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libcruft_la_LDFLAGS) $(LDFLAGS) -o $@ which I modified to libcruft_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) -no-undefined $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libcruft_la_LDFLAGS) $(LDFLAGS) -o $@ but that's not really a nice solution.Is there an additional libtool makefile variable, something like $(libtool_LDFLAGS) ? Or can one define an additional individual variable like $(libtool_NOUNDEFINED) which is empty by default, and set to "-no-undefined" for mingw platform?
benjamin
[Prev in Thread] | Current Thread | [Next in Thread] |