sys-devel/native-cctools: accept -rpath in aix ld
authorMichael Haubenwallner <haubi@gentoo.org>
Tue, 15 May 2018 10:17:58 +0000 (12:17 +0200)
committerMichael Haubenwallner <haubi@gentoo.org>
Tue, 15 May 2018 17:15:02 +0000 (19:15 +0200)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

sys-devel/native-cctools/files/aix-2/ld

index 7477f11cf6e9df34205913a96444f8018a3feddb..8f9841ef32ee5f257aacc8fe0c4c916cc4e57f9d 100644 (file)
@@ -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)