X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fposix-bc.sh;h=ec21bc327e44fc3d7b01d4e96dd982e537c2bc3c;hb=a35f6a9019609822ad5cd364f029e26ec87f93c5;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..ec21bc3 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'