summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg>2008-12-29 11:25:39 +0000
committerjoerg <joerg>2008-12-29 11:25:39 +0000
commit079c22510039eb585d7c6476ea5ce80a74805112 (patch)
treebf8a7d72fad1769c0ab0b8b4672d32bc0bac2011 /mk
parentefcd9a543d34433f01ee66df8800d561a37a77e4 (diff)
downloadpkgsrc-079c22510039eb585d7c6476ea5ce80a74805112.tar.gz
Emulate -rpath argument of GCC and xlC on AIX, it works like the
corresponding linker argument.
Diffstat (limited to 'mk')
-rw-r--r--mk/wrapper/cmd-sink-aix-xlc11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/wrapper/cmd-sink-aix-xlc b/mk/wrapper/cmd-sink-aix-xlc
index 3ae36b1770c..a0705904fbc 100644
--- a/mk/wrapper/cmd-sink-aix-xlc
+++ b/mk/wrapper/cmd-sink-aix-xlc
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-sink-aix-xlc,v 1.6 2008/11/27 18:01:17 joerg Exp $
+# $NetBSD: cmd-sink-aix-xlc,v 1.7 2008/12/29 11:25:39 joerg Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -69,6 +69,15 @@ while ! queue_is_empty cmdbuf; do
esac
$debug_log $wrapperlog " (cmd-sink-aix-xlc) drop: $dir [adding to blibpath]"
;;
+ # GCC and xlC allow -rpath directly, so keep this behavior.
+ -rpath)
+ pop_queue argbuf dir
+ case $blibpath in
+ "") blibpath="$dir" ;;
+ *) blibpath="$blibpath:$dir" ;;
+ esac
+ $debug_log $wrapperlog " (cmd-sink-aix-xlc) drop: $dir [adding to blibpath]"
+ ;;
*)
. $buildcmd
;;