perl: build with -fno-strict-liasing and -fwrapv
authorPhilip Prindeville <redacted>
Wed, 1 Aug 2018 00:28:41 +0000 (18:28 -0600)
committerPhilip Prindeville <redacted>
Wed, 1 Aug 2018 17:19:32 +0000 (11:19 -0600)
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 <redacted>
lang/perl/files/base.config

index 99170bf04197b2074c410b5d23ea96f6f21c10d6..90a2cfbf682b185e2cd8603a8cdb6db649fb3811 100644 (file)
@@ -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'
git clone https://git.99rst.org/PROJECT