diff options
author | joerg <joerg@pkgsrc.org> | 2008-12-29 11:25:39 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-12-29 11:25:39 +0000 |
commit | 932fd9ecdaf61ef1ece74bff8110410e0d5d6ed8 (patch) | |
tree | bf8a7d72fad1769c0ab0b8b4672d32bc0bac2011 /mk/wrapper | |
parent | 8e3e874e1d7affed8534001235c1ac5876939e7d (diff) | |
download | pkgsrc-932fd9ecdaf61ef1ece74bff8110410e0d5d6ed8.tar.gz |
Emulate -rpath argument of GCC and xlC on AIX, it works like the
corresponding linker argument.
Diffstat (limited to 'mk/wrapper')
-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 ;; |