diff options
author | Lukas Mai <l.mai@web.de> | 2016-05-11 22:15:34 +0200 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2017-08-08 17:47:33 +0100 |
commit | 6a042a6f0333fd9955876d96e93f695d05f85f75 (patch) | |
tree | 77fa2726ef9f364c81320287cf746a37484f7589 /Configure | |
parent | 9cff6a7672e984d7860a283a811161329f259c62 (diff) | |
download | perl-6a042a6f0333fd9955876d96e93f695d05f85f75.tar.gz |
fix symbol detection with gcc 6 link-time optimization (RT #128131)
(cherry picked from commit adec5bbf0b66ee5ebc2ba80eda2389bb68e23d86)
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6812,13 +6812,13 @@ yes) if $contains $tlook $tf >/dev/null 2>&1; then tval=true; elif $test "$mistrustnm" = compile -o "$mistrustnm" = run; then - echo "$extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main() { if(p() && p() != (void *)main) return(0); else return(1); }"> try.c; + echo "$extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main(int argc, char **argv) { if(p() && p() != (void *)argv[0]) return(0); else return(1); }"> try.c; $cc -o try $optimize $ccflags $ldflags try.c >/dev/null 2>&1 $libs && tval=true; $test "$mistrustnm" = run -a -x try && { $run ./try$_exe >/dev/null 2>&1 || tval=false; }; $rm_try; fi; else - echo "$extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main() { if(p() && p() != (void *)main) return(0); else return(1); }"> try.c; + echo "$extern_C void *$1$tdc; void *(*(p()))$tdc { return &$1; } int main(int argc, char **argv) { if(p() && p() != (void *)argv[0]) return(0); else return(1); }"> try.c; $cc -o try $optimize $ccflags $ldflags try.c $libs >/dev/null 2>&1 && tval=true; $rm_try; fi; |