X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fposix-bc.sh;h=2e46b8cf00dc3813954f24511be2e2512a0b563a;hb=c4d24d4c39d926df3531cb26fe44cea326bfa244;hp=9c1ead52fd0f1cb771f7b440158aaa440790a9a2;hpb=a1a0e61e30ae0c76c1d9cbf46512c19c0a966791;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/posix-bc.sh b/hints/posix-bc.sh index 9c1ead5..2e46b8c 100644 --- a/hints/posix-bc.sh +++ b/hints/posix-bc.sh @@ -6,12 +6,21 @@ # 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 $ccflags" + ldflags='-K risc_4000' +fi # Turning on optimization breaks perl (CORE-DUMP): optimize='none' @@ -21,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'