summaryrefslogtreecommitdiff
path: root/hints/posix-bc.sh
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-08-01 20:05:14 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-08-01 20:05:14 +0000
commit4113c5bc303671b3a2c078b02268869a69ef6576 (patch)
tree48db2da27c8a2a1428f39083125fad3bd116da88 /hints/posix-bc.sh
parentee072b34d54bea306ea81fa30b765c7ffd895f9a (diff)
downloadperl-4113c5bc303671b3a2c078b02268869a69ef6576.tar.gz
posix-bc hints tweak (via private mail from Thomas Dorner
<Thomas.Dorner@start.de>) p4raw-id: //depot/perl@3850
Diffstat (limited to 'hints/posix-bc.sh')
-rw-r--r--hints/posix-bc.sh9
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'