4 # BS2000 (Posix Subsystem) hints by Thomas Dorner <Thomas.Dorner@start.de>
6 # thanks to the authors of the os390.sh
9 # To get ANSI C, we need to use c89, and ld does not exist
10 # You can override this with Configure -Dcc=gcc -Dld=ld.
21 # -D_XOPEN_SOURCE_EXTENDED alters system headers.
22 # Prepend your favorites with Configure -Dccflags=your_favorites
24 '') ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED' ;;
25 *) ccflags='$ccflags -Kenum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED' ;;
28 # ccdlflags have yet to be determined.
30 #'') ccdlflags='-c' ;;
33 # cccdlflags have yet to be determined.
34 #case "$cccdlflags" in
38 # ldflags have yet to be determined.
43 # lddlflags have yet to be determined.
48 # Flags on a RISC-Host (SUNRISE):
49 if [ -n "`bs2cmd SHOW-SYSTEM-INFO | egrep 'HSI-ATT.*TYPE.*SR'`" ]; then
51 echo "Congratulations, you are running a machine with Sunrise CPUs."
52 echo "Let's hope you have the matching RISC compiler as well."
53 ccflags="-K risc_4000 $ccflags"
54 ldflags='-K risc_4000'
57 # Turning on optimization breaks perl (CORE-DUMP):
58 # You can override this with Configure -Doptimize='-O' or somesuch.
60 '') optimize='none' ;;
63 # we don''t use dynamic memorys (yet):
68 case "$usemymalloc" in
69 '') usemymalloc='n' ;;
72 # On BS2000/Posix, libc.a does not really hold anything at all,
73 # so running nm on it is pretty useless.
74 # You can override this with Configure -Dusenm.
79 # Dynamic loading doesn't work on OS/390 quite yet.
80 # You can override this with
81 # Configure -Dusedl -Ddlext=.so -Ddlsrc=dl_dllload.xs.
91 #case "$ldlibpthname" in
92 #'') ldlibpthname=LIBPATH ;;