From 4e29b4f3bbc90d7c3c642dafe9ea6180fa030832 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Tue, 31 Jul 2018 18:28:41 -0600 Subject: [PATCH] perl: build with -fno-strict-liasing and -fwrapv Looking at Configure and Porting/config.sh, it seems that Perl requires both of these options to build correctly. Should fix FS #1464. Signed-off-by: Philip Prindeville --- lang/perl/files/base.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/perl/files/base.config b/lang/perl/files/base.config index 99170bf04..90a2cfbf6 100644 --- a/lang/perl/files/base.config +++ b/lang/perl/files/base.config @@ -1043,7 +1043,7 @@ full_ar="${owrt:target_cross}ar" # Tool flags cppflags="$owrt:cflags" -ccflags="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $owrt:cflags" +ccflags="-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $owrt:cflags" ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccdlflags="-fPIC -rdynamic -Wl,-rpath,$owrt:perllibpath/CORE" cccdlflags='-fPIC'