summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-13 18:30:29 +0000
committerjlam <jlam@pkgsrc.org>2004-08-13 18:30:29 +0000
commit10681043c36c08a960a5fc36331574312c3f8425 (patch)
tree636e6266a5e6769f2422572de32abe786b051a8d /lang
parent2034ea12c3f4bf2d0c25f759166ec6344b173683 (diff)
downloadpkgsrc-10681043c36c08a960a5fc36331574312c3f8425.tar.gz
Include "/usr/pkg/gcc3/lib" in the list of directories that contain gcc3
libraries.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc3-c/buildlink3.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/lang/gcc3-c/buildlink3.mk b/lang/gcc3-c/buildlink3.mk
index 637b3d534e3..5c933870aad 100644
--- a/lang/gcc3-c/buildlink3.mk
+++ b/lang/gcc3-c/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.9 2004/05/17 21:32:34 seb Exp $
+# $NetBSD: buildlink3.mk,v 1.10 2004/08/13 18:30:29 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GCC3_C_BUILDLINK3_MK:= ${GCC3_C_BUILDLINK3_MK}+
@@ -24,8 +24,14 @@ GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
. endif
BUILDLINK_DEPENDS.gcc3-c+= gcc3${GCC3_PKGMODIF}-c>=${_GCC_REQD}
BUILDLINK_PKGSRCDIR.gcc3-c?= ../../lang/gcc3-c
-BUILDLINK_LIBDIRS.gcc3-c?= \
- lib ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3-c}\///}
+BUILDLINK_GCC3_LIBDIRS= lib
+. if defined(GCC3_INSTALLTO_SUBPREFIX)
+BUILDLINK_GCC3_LIBDIRS+= ${GCC3_INSTALLTO_SUBPREFIX}/lib
+. else
+BUILDLINK_GCC3_LIBDIRS+= gcc3/lib
+. endif
+BUILDLINK_GCC3_LIBDIRS+= ${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc3-c}\///}
+BUILDLINK_LIBDIRS.gcc3-c?= ${BUILDLINK_GCC3_LIBDIRS}
# Packages that link against shared libraries need a full dependency.
. if defined(USE_GCC_SHLIB)