summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorPetr Písař <ppisar@redhat.com>2019-11-12 09:19:18 +0100
committerChris Williams <chris@bingosnet.co.uk>2019-11-12 11:49:08 +0000
commit6bd6308fcea3541e505651bf8e8127a4a03d22cd (patch)
treef581612b19109ec0167dff39f56092b55e6aafb8 /cflags.SH
parentbe45a1e1e43579d38b8161de4c42f27ea053a20f (diff)
downloadperl-6bd6308fcea3541e505651bf8e8127a4a03d22cd.tar.gz
Adapt Configure to GCC version 10
I got a notice from Jeff Law <law@redhat.com>: Your particular package fails its testsuite. This was ultimately tracked down to a Configure problem. The perl configure script treated gcc-10 as gcc-1 and turned on -fpcc-struct-return. This is an ABI changing flag and caused Perl to not be able to interact properly with the dbm libraries on the system leading to a segfault. His proposed patch corrected only this one instance of the version mismatch. Reading the Configure script revealed more issues. This patch fixes all of them I found. Please note I do not have GCC 10 available, I tested it by faking the version with: --- a/Configure +++ b/Configure @@ -4672,7 +4672,7 @@ $cat >try.c <<EOM int main() { #if defined(__GNUC__) && !defined(__INTEL_COMPILER) #ifdef __VERSION__ - printf("%s\n", __VERSION__); + printf("%s\n", "10.0.0"); #else printf("%s\n", "1"); #endif
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH2
1 files changed, 1 insertions, 1 deletions
diff --git a/cflags.SH b/cflags.SH
index e60742fed1..f1bcd6c38e 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -156,7 +156,7 @@ esac
case "$gccversion" in
'') ;;
-[12]*) ;; # gcc versions 1 (gasp!) and 2 are not good for this.
+[12].*) ;; # gcc versions 1 (gasp!) and 2 are not good for this.
Intel*) ;; # # Is that you, Intel C++?
#
# NOTE 1: the -std=c89 without -pedantic is a bit pointless.