diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-02 17:07:25 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-02 17:07:25 +0000 |
commit | f1edc4d673931fb061357acbd9e401b9c20c4a68 (patch) | |
tree | d24c5877e9b43d959548614c3e2752ec7c12fad8 /hints/irix_6.sh | |
parent | b21ed0a92b5a07dd021a85728802e72edfa03699 (diff) | |
download | perl-f1edc4d673931fb061357acbd9e401b9c20c4a68.tar.gz |
libscheck has insufficient checks for n32 libs (from
Albert Chin-A-Young <china@thewrittenword.com>)
p4raw-id: //depot/perl@6046
Diffstat (limited to 'hints/irix_6.sh')
-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 |