From f1edc4d673931fb061357acbd9e401b9c20c4a68 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 2 May 2000 17:07:25 +0000 Subject: libscheck has insufficient checks for n32 libs (from Albert Chin-A-Young ) p4raw-id: //depot/perl@6046 --- hints/irix_6.sh | 16 +++++++++++++--- 1 file 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 + 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 -- cgit v1.2.1 From 1f24770523b86085797280e0a7daee28bb477133 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 2 May 2000 18:29:10 +0000 Subject: add note about how $( doesn't interpolate in REs (from Philip Newton ) p4raw-id: //depot/perl@6048 --- pod/perlop.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlop.pod b/pod/perlop.pod index c1ac387067..b4caed9155 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -788,8 +788,8 @@ If "'" is the delimiter, no interpolation is performed on the PATTERN. PATTERN may contain variables, which will be interpolated (and the pattern recompiled) every time the pattern search is evaluated, except -for when the delimiter is a single quote. (Note that C<$)> and C<$|> -might not be interpolated because they look like end-of-string tests.) +for when the delimiter is a single quote. (Note that C<$(>, C<$)>, and +C<$|> are not interpolated because they look like end-of-string tests.) If you want such a pattern to be compiled only once, add a C after the trailing delimiter. This avoids expensive run-time recompilations, and is useful when the value you are interpolating won't change over -- cgit v1.2.1