From: Andy Dougherty (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-9992-
1210696625-331.54120-75-0@perl.org>
p4raw-id: //depot/metaconfig@33842
# as that way the compiler can do the right implementation dependant
# thing. (NWC)
case "$gccversion" in
- ?*) set stack-protector -fstack-protector 'ldflags="$ldflags -fstack-protector"'
+ ?*) set stack-protector -fstack-protector
eval $checkccflag
;;
esac
case "$ccflags" in
*-posix*) dflt="$dflt -posix" ;;
esac
+ # See note above about -fstack-protector
+ case "$ccflags" in
+ *-fstack-protector*) dflt="$dflt -fstack-protector" ;;
+ esac
;;
*) dflt="$ldflags";;
esac
''|' ') dflt='none' ;;
esac
+ case "$ldflags" in
+ *-fstack-protector*)
+ case "$dflt" in
+ *-fstack-protector*) ;; # Don't add it again
+ *) dflt="$dflt -fstack-protector" ;;
+ esac
+ ;;
+ esac
+
+
rp="Any special flags to pass to $ld to create a dynamically loaded library?"
. ./myread
case "$ans" in