pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Modify the "no-rpath" to not need a "/" ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5a22338c0080
branches: trunk
changeset: 468290:5a22338c0080
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Feb 12 08:28:58 2004 +0000
description:
Modify the "no-rpath" to not need a "/" to start the rpath. Also modify
the "r" command to allow paths ending in "/". This should fix PR 24352.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 4 ++--
mk/buildlink3/gen-transform.sh | 36 ++++++++++++++++++------------------
2 files changed, 20 insertions(+), 20 deletions(-)
diffs (85 lines):
diff -r 4e9733e48cf5 -r 5a22338c0080 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Thu Feb 12 07:11:38 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Thu Feb 12 08:28:58 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.81 2004/02/09 03:05:59 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.82 2004/02/12 08:28:58 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -856,7 +856,7 @@
# Explicitly remove everything else that's an absolute path, since we've
# already protected the ones we care about.
#
-_BLNK_TRANSFORM+= r:
+_BLNK_TRANSFORM+= r:/
#
# Remove -Wl,-R* and *-rpath* if _USE_RPATH == "no".
# Transform -Wl,-R* and *-rpath* if Sun compilers are used.
diff -r 4e9733e48cf5 -r 5a22338c0080 mk/buildlink3/gen-transform.sh
--- a/mk/buildlink3/gen-transform.sh Thu Feb 12 07:11:38 2004 +0000
+++ b/mk/buildlink3/gen-transform.sh Thu Feb 12 08:28:58 2004 +0000
@@ -1,6 +1,6 @@
#!@BUILDLINK_SHELL@
#
-# $NetBSD: gen-transform.sh,v 1.20 2004/02/01 00:41:25 jlam Exp $
+# $NetBSD: gen-transform.sh,v 1.21 2004/02/12 08:28:58 jlam Exp $
transform="@_BLNK_TRANSFORM_SEDFILE@"
untransform="@_BLNK_UNTRANSFORM_SEDFILE@"
@@ -112,12 +112,12 @@
gen $action __r:-R\\.
;;
no-rpath)
- gen $action _r:-Wl,--rpath-link,
- gen $action _r:-Wl,--rpath,
- gen $action _r:-Wl,-rpath-link,
- gen $action _r:-Wl,-rpath,
- gen $action _r:-Wl,-R
- gen $action _r:-R
+ gen $action __r:-Wl,--rpath-link,
+ gen $action __r:-Wl,--rpath,
+ gen $action __r:-Wl,-rpath-link,
+ gen $action __r:-Wl,-rpath,
+ gen $action __r:-Wl,-R
+ gen $action __r:-R
;;
reorder)
case "$action" in
@@ -250,7 +250,7 @@
case "$action" in
transform|untransform)
@CAT@ >> $sedfile << EOF
-s|$2[^ \`"':;]*||g
+s|$2[^$_sep]*||g
EOF
;;
esac
@@ -268,17 +268,17 @@
;;
r)
case "$2" in
- "") r=__r; pat="/" ;;
- *) r=_r; pat="$2" ;;
+ */) r=__r ;;
+ *) r=_r ;;
esac
- gen $action $r:-I$pat
- gen $action $r:-L$pat
- gen $action $r:-Wl,--rpath-link,$pat
- gen $action $r:-Wl,--rpath,$pat
- gen $action $r:-Wl,-rpath-link,$pat
- gen $action $r:-Wl,-rpath,$pat
- gen $action $r:-Wl,-R$pat
- gen $action $r:-R$pat
+ gen $action $r:-I$2
+ gen $action $r:-L$2
+ gen $action $r:-Wl,--rpath-link,$2
+ gen $action $r:-Wl,--rpath,$2
+ gen $action $r:-Wl,-rpath-link,$2
+ gen $action $r:-Wl,-rpath,$2
+ gen $action $r:-Wl,-R$2
+ gen $action $r:-R$2
;;
S)
case "$action" in
Home |
Main Index |
Thread Index |
Old Index