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 # -DPERL_IGNORE_FPUSIG=SIGFPE
23 # Prepend your favorites with Configure -Dccflags=your_favorites
25 '') ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -DPERL_IGNORE_FPUSIG=SIGFPE' ;;
26 *) ccflags='$ccflags -Kenum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -DPERL_IGNORE_FPUSIG=SIGFPE' ;;
29 # ccdlflags have yet to be determined.
31 #'') ccdlflags='-c' ;;
34 # cccdlflags have yet to be determined.
35 #case "$cccdlflags" in
39 # ldflags have yet to be determined.
44 # lddlflags have yet to be determined.
49 # Flags on a RISC-Host (SUNRISE):
50 if [ -n "`bs2cmd SHOW-SYSTEM-INFO | egrep 'HSI-ATT.*TYPE.*SR'`" ]; then
52 echo "Congratulations, you are running a machine with Sunrise CPUs."
53 echo "Let's hope you have the matching RISC compiler as well."
54 ccflags="-K risc_4000 $ccflags"
55 ldflags='-K risc_4000'
58 # Turning on optimization breaks perl (CORE-DUMP):
59 # You can override this with Configure -Doptimize='-O' or somesuch.
61 '') optimize='none' ;;
64 # we don''t use dynamic memorys (yet):
69 case "$usemymalloc" in
70 '') usemymalloc='n' ;;
73 # On BS2000/Posix, libc.a does not really hold anything at all,
74 # so running nm on it is pretty useless.
75 # You can override this with Configure -Dusenm.
80 # Dynamic loading doesn't work on OS/390 quite yet.
81 # You can override this with
82 # Configure -Dusedl -Ddlext=.so -Ddlsrc=dl_dllload.xs.
92 #case "$ldlibpthname" in
93 #'') ldlibpthname=LIBPATH ;;