In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/76e6b6c7dc4c93d421dfe6c24866c3cd4560b57a?hp=a7dba6f870a82e3be87bda50593cb5d2042277fd>

- Log -----------------------------------------------------------------
commit 76e6b6c7dc4c93d421dfe6c24866c3cd4560b57a
Author: Jarkko Hietaniemi <[email protected]>
Date:   Fri Oct 16 08:10:40 2015 -0400

    Try to avoid doubling the cppflags if rerun without removing config.sh
    
    This bug has been here since 2001, introduced by yours truly
    in 58e77565.  Hasn't been too harmful, obviously.  It doubles
    the cppflags only once, thankfully, unlimited doubling would
    probably have been noticed earlier.
    
    The avoidance maneuver is far from fool-proof.  To be more
    fooler-proofer, some sort of order-preserving deduping would
    be needed.
-----------------------------------------------------------------------

Summary of changes:
 Configure | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Configure b/Configure
index e751dd9..0d7796c 100755
--- a/Configure
+++ b/Configure
@@ -5533,7 +5533,12 @@ esac
 : the following weeds options from ccflags that are of no interest to cpp
 case "$cppflags" in
 '') cppflags="$ccflags" ;;
-*)  cppflags="$cppflags $ccflags" ;;
+*)  set X $ccflags; shift
+    case " $cppflags " in
+    *" $1 "*) ;;  # Try to avoid doubling the cppflags.
+    *) cppflags="$cppflags $ccflags" ;;
+    esac
+    ;;
 esac
 case "$gccversion" in
 1*) cppflags="$cppflags -D__GNUC__"

--
Perl5 Master Repository

Reply via email to