libtool-patches
[Top][All Lists]
Advanced

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

Re: fix per-target flags (was: mingw cross)


From: Bob Friesenhahn
Subject: Re: fix per-target flags (was: mingw cross)
Date: Sun, 23 Jan 2005 10:11:16 -0600 (CST)

On Sun, 23 Jan 2005, Ralf Wildenhues wrote:

        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)?

This looks fine to me.

Bob


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



======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

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