summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-05-06 14:25:02 +0000
committerjschauma <jschauma@pkgsrc.org>2004-05-06 14:25:02 +0000
commitb02a7b431aa9e1065d8eb0a0283398029d169f96 (patch)
treeac2ddfe3e22c76d99082b6b0570bdb27ce3a6fd1 /mk/compiler
parent356699e9d492d16c25843dd353664c1a42765e47 (diff)
downloadpkgsrc-b02a7b431aa9e1065d8eb0a0283398029d169f96.tar.gz
Finally set _COMPILER_LD_FLAG.
(Not having this set caused various rpath related problems, as the compiler was passed ' -rpath,/path' instead of '-Wl,-rpath,/path', leading to a rpath of ",path", which of course wouldn't work.)
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/mipspro.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk
index a37aaa463a8..edb060e5afd 100644
--- a/mk/compiler/mipspro.mk
+++ b/mk/compiler/mipspro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.22 2004/02/18 13:32:38 jlam Exp $
+# $NetBSD: mipspro.mk,v 1.23 2004/05/06 14:25:02 jschauma Exp $
.if !defined(COMPILER_MIPSPRO_MK)
COMPILER_MIPSPRO_MK= defined
@@ -41,6 +41,9 @@ CC_VERSION_STRING?= ${CC_VERSION}
CC_VERSION?= MIPSpro Compilers
.endif
+# MIPSPro passes flags to the linker using "-Wl,".
+_COMPILER_LD_FLAG= -Wl,
+
# Prepend the path to the compiler to the PATH.
.if !empty(_LANGUAGES.mipspro)
PREPEND_PATH+= ${_MIPSPRO_DIR}/bin