This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: New attempt on hints/solaris_2.sh
[perl5.git] / hints / posix-bc.sh
index ec21bc3..2e46b8c 100644 (file)
@@ -6,19 +6,19 @@
 #  thanks to the authors of the os390.sh
 #
 
-# To get ANSI C, we need to use c89, and ld doesn't exist
+# To get ANSI C, we need to use c89, and ld does not exist
 cc='c89'
 ld='c89'
 
 # C-Flags:
-ccflags='-DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED'
+ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED'
 
 # Flags on a RISC-Host (SUNRISE):
 if [ -n "`bs2cmd SHOW-SYSTEM-INFO | egrep 'HSI-ATT.*TYPE.*SR'`" ]; then
     echo
     echo "Congratulations, you are running a machine with Sunrise CPUs."
     echo "Let's hope you have the matching RISC compiler as well."
-    ccflags='-K risc_4000 -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED'
+    ccflags="-K risc_4000 $ccflags"
     ldflags='-K risc_4000'
 fi
 
@@ -30,7 +30,7 @@ so='none'
 usedl='no'
 dlext='none'
 
-# On BS2000/Posix, libc.a doesn't really hold anything at all,
+# On BS2000/Posix, libc.a does not really hold anything at all,
 # so running nm on it is pretty useless.
 usenm='no'