pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk if /usr/lib/libstdc++.la exists, create the corresp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9289f52abd3
branches:  trunk
changeset: 462216:a9289f52abd3
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Sep 28 09:48:00 2003 +0000

description:
if /usr/lib/libstdc++.la exists, create the corresponding fake libtool
archive in ${BUILDLINK_DIR}/lib so packages can find and use it.

fixes some build problems seen on Slackware Linux 9.

diffstat:

 mk/compiler.mk |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r bde021e28e49 -r a9289f52abd3 mk/compiler.mk
--- a/mk/compiler.mk    Sun Sep 28 09:20:34 2003 +0000
+++ b/mk/compiler.mk    Sun Sep 28 09:48:00 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.13 2003/09/27 17:20:38 grant Exp $
+# $NetBSD: compiler.mk,v 1.14 2003/09/28 09:48:00 grant Exp $
 
 # This Makefile fragment implements handling for supported
 # C/C++/fortran compilers.
@@ -190,6 +190,19 @@
 LDFLAGS+=              ${_GCC_LDFLAGS}
 .endif
 
+# create a fake libstdc++.la if one exists in /usr/lib.
+.if empty(USE_BUILDLINK2:M[nN][oO])
+.  if defined(_CC_IS_GCC) && exists(/usr/lib/libstdc++.la)
+BUILDLINK_TARGETS+=            libstdc++-buildlink-la
+
+libstdc++-buildlink-la:
+       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       lafile="${BUILDLINK_DIR}/lib/libstdc++.la";                     \
+       libpattern="/usr/lib/libstdc++.*";                              \
+       ${BUILDLINK_FAKE_LA}
+.  endif
+.endif
+
 # CC_VERSION can be tested by package Makefiles to tweak things based
 # on the compiler being used. This is only functional for gcc right now.
 #



Home | Main Index | Thread Index | Old Index