libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix per-target flags (was: mingw cross)


From: Ralf Wildenhues
Subject: fix per-target flags (was: mingw cross)
Date: Sun, 23 Jan 2005 14:43:23 +0100
User-agent: Mutt/1.5.6+20040907i

* Ralf Wildenhues wrote on Sun, Jan 23, 2005 at 09:47:00AM CET:
> Hehe, Debian sarge has mingw cross-compile packages.  :)
>
> Testing this uncovered a bug: $host_os is tested but not set in libtool.

And we use $build as well in ltmain..

> Tests that fail:
> 
> mdemo2-make
> tagdemo-make   (after conf and shared)
>       These are all genuine problems Libtool has with MinGW.

CVS Automake changed per-target flags handling[1].  We need to adapt
(in the hope there won't ever be flags that are not idempotent.)
Stumbled over that while looking at tagdemo.

OK to apply to HEAD and branch-2-0 (does not apply to 1-5 I think)?

Regards,
Ralf

[1] See
http://lists.gnu.org/archive/html/automake-patches/2005-01/msg00004.html
and link therein.


        * libltdl/Makefile.am: Add $(AM_LDFLAGS) to all per-target
        variables *_LDFLAGS as per CVS Automake semantic change.

Index: libltdl/Makefile.am
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/Makefile.am,v
retrieving revision 1.68
diff -u -r1.68 Makefile.am
--- libltdl/Makefile.am 13 Dec 2004 21:09:19 -0000      1.68
+++ libltdl/Makefile.am 23 Jan 2005 13:22:36 -0000
@@ -42,7 +42,7 @@
                          libltdl/lt__glibc.h \
                          libltdl/lt__dirent.h \
                          libltdl/slist.h slist.c
-libdlloader_la_LDFLAGS = $(VERSION_INFO)
+libdlloader_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO)
 libdlloader_la_LIBADD  = $(LTLIBOBJS)
 
 ## Libltdl brings it all together:
@@ -60,12 +60,12 @@
 libltdl_la_SOURCES     = ltdl.h ltdl.c \
                          libltdl/lt_dlloader.h lt_dlloader.c loaders/preopen.c
 libltdl_la_CPPFLAGS    = -DLTDLOPEN=libltdl $(AM_CPPFLAGS)
-libltdl_la_LDFLAGS     =  $(VERSION_INFO) $(LT_DLPREOPEN)
+libltdl_la_LDFLAGS     = $(AM_LDFLAGS) $(VERSION_INFO) $(LT_DLPREOPEN)
 libltdl_la_LIBADD      = libdlloader.la
 
 libltdlc_la_SOURCES    = $(libltdl_la_SOURCES) $(libdlloader_la_SOURCES)
 libltdlc_la_CPPFLAGS   = -DLTDLOPEN=libltdlc $(AM_CPPFLAGS)
-libltdlc_la_LDFLAGS    = -weak libdlloader.la $(LT_DLPREOPEN)
+libltdlc_la_LDFLAGS    = $(AM_LDFLAGS) -weak libdlloader.la $(LT_DLPREOPEN)
 libltdlc_la_LIBADD     = $(libdlloader_la_LIBADD)
 
 ## These are installed as a subdirectory of pkgdatadir so that




reply via email to

[Prev in Thread] Current Thread [Next in Thread]