summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorsbd <sbd>2013-04-21 09:05:01 +0000
committersbd <sbd>2013-04-21 09:05:01 +0000
commite8e059cd728d24b8b1045605be7646ebcf1699ce (patch)
tree6fa8d30494ea443b8a9b7a5ac4412d5069327d5c /lang
parent66c8027df51702e7b47f18484733d9b65d70b1c7 (diff)
downloadpkgsrc-e8e059cd728d24b8b1045605be7646ebcf1699ce.tar.gz
In some cases LINKER_RPATH_FLAG needs a trailing space so that there will be
a space between the flag and its argument.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc48/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index 129b4e91d26..a03af8f65a4 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2013/04/19 16:34:47 adam Exp $
+# $NetBSD: Makefile,v 1.6 2013/04/21 09:05:01 sbd Exp $
GCC_PKGNAME= gcc48
.include "version.mk"
@@ -43,6 +43,9 @@ UNLIMIT_RESOURCES+= stacksize
LANGS= c
+# In some cases LINKER_RPATH_FLAG needs a trailing space.
+LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /}
+
## The Library rpath to use in end programs.
LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*}