Emulate -rpath argument of GCC and xlC on AIX, it works like the

corresponding linker argument.
This commit is contained in:
joerg 2008-12-29 11:25:39 +00:00
parent 8e3e874e1d
commit 932fd9ecda

View file

@ -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
;;