Commit | Line | Data |
a1a0e61e |
1 | #! /usr/bin/bash -norc |
2 | # hints/posix-bc.sh |
3 | # |
4 | # BS2000 (Posix Subsystem) hints by Thomas Dorner <Thomas.Dorner@start.de> |
5 | # |
6 | # thanks to the authors of the os390.sh |
7 | # |
8 | |
c8e8bf6a |
9 | # To get ANSI C, we need to use c89, and ld does not exist |
a1a0e61e |
10 | cc='c89' |
11 | ld='c89' |
12 | |
13 | # C-Flags: |
c8e8bf6a |
14 | ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED' |
a1a0e61e |
15 | |
4113c5bc |
16 | # Flags on a RISC-Host (SUNRISE): |
17 | if [ -n "`bs2cmd SHOW-SYSTEM-INFO | egrep 'HSI-ATT.*TYPE.*SR'`" ]; then |
18 | echo |
19 | echo "Congratulations, you are running a machine with Sunrise CPUs." |
20 | echo "Let's hope you have the matching RISC compiler as well." |
c8e8bf6a |
21 | ccflags="-K risc_4000 $ccflags" |
4113c5bc |
22 | ldflags='-K risc_4000' |
23 | fi |
24 | |
a1a0e61e |
25 | # Turning on optimization breaks perl (CORE-DUMP): |
26 | optimize='none' |
27 | |
28 | # we don''t use dynamic memorys (yet): |
29 | so='none' |
30 | usedl='no' |
31 | dlext='none' |
32 | |
c8e8bf6a |
33 | # On BS2000/Posix, libc.a does not really hold anything at all, |
a1a0e61e |
34 | # so running nm on it is pretty useless. |
35 | usenm='no' |
36 | |
37 | # other Options: |
38 | |
39 | usemymalloc='no' |
40 | |
41 | archobjs=ebcdic.o |
42 | |