diff options
Diffstat (limited to 'hints/posix-bc.sh')
-rw-r--r-- | hints/posix-bc.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/posix-bc.sh b/hints/posix-bc.sh index 9c1ead52fd..ec21bc327e 100644 --- a/hints/posix-bc.sh +++ b/hints/posix-bc.sh @@ -13,6 +13,15 @@ ld='c89' # C-Flags: ccflags='-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' + ldflags='-K risc_4000' +fi + # Turning on optimization breaks perl (CORE-DUMP): optimize='none' |