diff options
author | joerg <joerg> | 2008-12-29 11:25:39 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-12-29 11:25:39 +0000 |
commit | 079442f76dc1e6b2f3145083ec8e89d8c490feb1 (patch) | |
tree | bf8a7d72fad1769c0ab0b8b4672d32bc0bac2011 | |
parent | 44dec867bd7aef5cb53f891cdbfdc06c9d3afd02 (diff) | |
download | pkgsrc-079442f76dc1e6b2f3145083ec8e89d8c490feb1.tar.gz |
Emulate -rpath argument of GCC and xlC on AIX, it works like the
corresponding linker argument.
-rw-r--r-- | mk/wrapper/cmd-sink-aix-xlc | 11 |
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 ;; |