summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2018-05-15 12:17:58 +0200
committerMichael Haubenwallner <haubi@gentoo.org>2018-05-15 19:15:02 +0200
commitf7f7d26f874d75aaed7774f93ce9d43e57928d19 (patch)
treeb6464bc0044fa4e94e524d0bffa58837c1cb0592 /sys-devel/native-cctools
parentwww-client/vivaldi-snapshot: Old. (diff)
downloadgentoo-f7f7d26f874d75aaed7774f93ce9d43e57928d19.tar.gz
gentoo-f7f7d26f874d75aaed7774f93ce9d43e57928d19.tar.bz2
gentoo-f7f7d26f874d75aaed7774f93ce9d43e57928d19.zip
sys-devel/native-cctools: accept -rpath in aix ld
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-devel/native-cctools')
-rw-r--r--sys-devel/native-cctools/files/aix-2/ld7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-devel/native-cctools/files/aix-2/ld b/sys-devel/native-cctools/files/aix-2/ld
index 7477f11cf6e9..8f9841ef32ee 100644
--- a/sys-devel/native-cctools/files/aix-2/ld
+++ b/sys-devel/native-cctools/files/aix-2/ld
@@ -1,5 +1,5 @@
#! /usr/bin/env /bin/ksh
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2018 Gentoo Foundation; Distributed under the GPL v2
# Upon '-soname' and similar flags, create a "shared library" on AIX being an
# archive file containing an Import File and the shared object file, as in:
@@ -29,6 +29,11 @@ while [[ $# -gt 0 ]]
do
arg=$1
shift
+ case ${arg} in
+ -rpath=*)
+ arg="-R${arg#-rpath=}"
+ ;;
+ esac
oldargs="${oldargs} '${arg}'"
case ${arg} in
-o)