diff options
author | Ben Huntsman <BHuntsman@mail2.cu-portland.edu> | 2020-05-04 19:52:02 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-07 20:36:03 -0400 |
commit | 4982d4ebc3bd4924d73f2f2ad584309e9ec97435 (patch) | |
tree | 64391bc34075ce7fe5d9a2f6ad50c71f27e428c3 /bin/9l | |
parent | c3c9c7b6ae7c6a8bf9c6d040d3af89e020fd92de (diff) | |
download | plan9port-4982d4ebc3bd4924d73f2f2ad584309e9ec97435.tar.gz plan9port-4982d4ebc3bd4924d73f2f2ad584309e9ec97435.tar.bz2 plan9port-4982d4ebc3bd4924d73f2f2ad584309e9ec97435.zip |
all: update build scripts to fix AIX XL/C compatibility
Diffstat (limited to 'bin/9l')
-rwxr-xr-x | bin/9l | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -61,8 +61,9 @@ case "$tag" in esac ;; *AIX*) - ld=${CC9:-gcc} - nmflags="-B" + ld="${CC9:-xlc_r} -g -O0" + nmflags="-A -B" + extralibs="$extralibs -lpthread" ;; *) echo do not know how to link on "$tag" 1>&2 @@ -113,8 +114,8 @@ then then a=` nm $nmflags $ofiles | - grep '__p9l_autolib_[a-zA-Z0-9+-]*$' | - sed 's/.*__p9l_autolib_//' | + grep '__p9l_autolib_[a-zA-Z0-9+-]*' | + sed 's/.*__p9l_autolib_//; s/:.*//' | sort -u ` for i in $a @@ -144,8 +145,8 @@ then do b=` nm $lpath/lib$i.a 2>/dev/null | - grep '__p9l_autolib_[a-zA-Z0-9+-]*$' | - sed 's/.*__p9l_autolib_//' | + grep '__p9l_autolib_[a-zA-Z0-9+-]*' | + sed 's/.*__p9l_autolib_//; s/:.*//' | sort -u | egrep -v '^(thread|draw)$' ` |