pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Reorder the transformations in _BLNK_TRA...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8d71843f44e8
branches: trunk
changeset: 479287:8d71843f44e8
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Aug 10 15:16:29 2004 +0000
description:
Reorder the transformations in _BLNK_TRANSFORM so that commands to
remove rpath options come first. This fixes problems we may encounter
if ${_OPSYS_RPATH_NAME} is something surprising, like "-L". On Darwin,
this was causing -L/usr/lib to be stripped out of "-Wl,-L/usr/lib",
which left a bare "-Wl," on the command line.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (49 lines):
diff -r b70da3d39845 -r 8d71843f44e8 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Tue Aug 10 15:14:16 2004 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Tue Aug 10 15:16:29 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.146 2004/07/29 05:09:29 xtraeme Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.147 2004/08/10 15:16:29 jlam Exp $
#
# An example package buildlink3.mk file:
#
@@ -867,6 +867,19 @@
. endif
.endfor
+# Remove -Wl,-R* and *-rpath* if _USE_RPATH == "no".
+# Transform -Wl,-R* and *-rpath* if Sun compilers are used.
+#
+.if defined(_USE_RPATH) && !empty(_USE_RPATH:M[nN][oO])
+_BLNK_TRANSFORM+= no-rpath
+.endif
+#
+# Remove rpath options that try to add relative paths to the runtime
+# library search path. This basically partly cleans up after lazy
+# programmers.
+#
+_BLNK_TRANSFORM+= abs-rpath
+#
# Transform all references to the physical paths to some important
# directories into their given names.
#
@@ -966,19 +979,6 @@
#
_BLNK_TRANSFORM+= r:/
#
-# Remove -Wl,-R* and *-rpath* if _USE_RPATH == "no".
-# Transform -Wl,-R* and *-rpath* if Sun compilers are used.
-#
-.if defined(_USE_RPATH) && !empty(_USE_RPATH:M[nN][oO])
-_BLNK_TRANSFORM+= no-rpath
-.endif
-#
-# Remove rpath options that try to add relative paths to the runtime
-# library search path. This basically partly cleans up after lazy
-# programmers.
-#
-_BLNK_TRANSFORM+= abs-rpath
-#
# Undo the protection for the directories that we allow to be specified
# for the runtime library search path.
#
Home |
Main Index |
Thread Index |
Old Index