diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-05-02 22:25:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-05-02 22:25:05 +0000 |
commit | dd1ab7d3062410213ab87960b793b6fbffcd2650 (patch) | |
tree | d0a14aa44922f7eea72be3744d783d9ce99be98b /hints | |
parent | a20e3af3265360798a79dcde782ad9fc7f468461 (diff) | |
parent | 1f24770523b86085797280e0a7daee28bb477133 (diff) | |
download | perl-dd1ab7d3062410213ab87960b793b6fbffcd2650.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@6053
Diffstat (limited to 'hints')
-rw-r--r-- | hints/irix_6.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 9d9852d049..8be23ac65f 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -77,9 +77,19 @@ esac case "$cc" in *"cc -n32"*) - libscheck='case "`/usr/bin/file $xxx`" in -*N32*) ;; -*) xxx=/no/n32$xxx ;; + # If a library is requested to link against, make sure the + # objects in the library are of the same ABI we are compiling + # against. Albert Chin-A-Young <china@thewrittenword.com> + libscheck='case "$xxx" in +*.a) /bin/ar p $xxx `/bin/ar t $xxx | /usr/bsd/head -1` >$$.o; + case "`/usr/bin/file $$.o`" in + *N32*) rm -f $$.o ;; + *) rm -f $$.o; xxx=/no/n32$xxx ;; + esac ;; +*) case "`/usr/bin/file $xxx`" in + *N32*) ;; + *) xxx=/no/n32$xxx ;; + esac ;; esac' # NOTE: -L/usr/lib32 -L/lib32 are automatically selected by the linker |