perl: build with -fno-strict-liasing and -fwrapv
authorPhilip Prindeville <philipp@redfish-solutions.com>
Wed, 1 Aug 2018 00:28:41 +0000 (18:28 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Fri, 3 Aug 2018 04:28:03 +0000 (22:28 -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 <philipp@redfish-solutions.com>
lang/perl/files/base.config

index 7bcfc859c44ed543991e863d605768f73da5b6eb..cf1c29f0d3bbf17196c95a0e7a859f37ec3f06ce 100644 (file)
@@ -1022,7 +1022,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'