summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@fractal.phys.lafayette.edu>1997-02-24 16:07:07 -0500
committerChip Salzenberg <chip@atlantic.net>1997-02-22 02:41:53 +1200
commitbc75e68b7b49a5ac07dc839aec7ca05eba51175f (patch)
tree80e69d6cbaeb1f3760a0cc91e1976bd68e4303b8
parentb8e6d11c134e93a7795379ceb62b7f950607c667 (diff)
downloadperl-bc75e68b7b49a5ac07dc839aec7ca05eba51175f.tar.gz
Re: ccdlflags don't quite work
On Mon, 24 Feb 1997, Matthias Urlichs wrote: > Two problems: > > # How will the perl executable find the installed shared $libperl? > # Add $xxx to ccdlflags. > ... and it does this every time I reconfigure Perl without first saying > "rm config.sh", so the list grows longer and longer and... Ugh. Probably > the best solution is to add a Configure variable which does nothing but > remember if we have added $xxx yet. I think this will fix the problem. p5p-msgid: <Pine.SOL.3.95q.970224160630.5700E-100000@fractal.lafayette.edu> private-msgid: <Pine.SOL.3.95q.970224160630.5700E-100000@fractal.lafayette.e
-rwxr-xr-xConfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/Configure b/Configure
index 60ed79c6a6..4201a5c12b 100755
--- a/Configure
+++ b/Configure
@@ -4727,14 +4727,20 @@ if "$useshrplib"; then
esac
case "$xxx" in
'') ;;
- *) ccdlflags="$ccdlflags $xxx"
- cat <<EOM >&4
+ *)
+ # Only add $xxx if it isn't already in ccdlflags.
+ case "$ccdlflags" in
+ *${xxx}*) ;;
+ *) ccdlflags="$ccdlflags $xxx"
+ cat <<EOM >&4
Adding $xxx to the flags
passed to $ld so that the perl executable will find the
installed shared $libperl.
EOM
+ ;;
+ esac
;;
esac
fi