X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fdgux.sh;h=53a39c8a73e81d7d7f6ec606b153576aa3dcd962;hb=6137113dfd943e6f896f8b9c1a4df2b7d4e355ae;hp=64cff33af985f9e75a203d6212d65ce2d5c2c305;hpb=d1be9408a3c14848d30728674452e191ba5fffaa;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/dgux.sh b/hints/dgux.sh index 64cff33..53a39c8 100644 --- a/hints/dgux.sh +++ b/hints/dgux.sh @@ -29,61 +29,61 @@ # Department of Pure Mathematics # Wilberforce road # Cambridge CB3 0WB , UK -# e-mail +# e-mail # Use GCC-2.95.2/3 rev (DG/UX) for threads # This compiler supports the -pthread switch # to link correctly DG/UX 's -lthread. +# March 2002 ########################################### cc=gcc ccflags="-DDGUX -D_DGUX_SOURCE" -# Debug build with GNU as,ld and -gstabs+ -# ccflags="-DDGUX -D_DGUX_SOURCE -gstabs+" +# Debug build. If using GNU as,ld use the flag -gstabs+ +# ccflags="-g -mstandard -DDGUX -D_DGUX_SOURCE -DDEBUGGING" # Dummy ; always compile with -O2 on GCC 2.95.2/3 rev (DG/UX) +# even if you debugging the program! optimize="-mno-legend -O2" archname="ix86-dgux" libpth="/usr/lib" ##################################### -# +# # Change this if you want. # prefix =/usr/local ##################################### prefix=/usr/local -perlpath="$prefix/bin/perl57" -startperl="#! $prefix/bin/perl57" -privlib="$prefix/lib/perl57" +perlpath="$prefix/bin/perl59" +startperl="#! $prefix/bin/perl59" +privlib="$prefix/lib/perl59" man1dir="$prefix/man/man1" man3dir="$prefix/man/man3" -sitearch="$prefix/lib/perl57/$archname" -sitelib="$prefix/lib/perl57" +sitearch="$prefix/lib/perl59/$archname" +sitelib="$prefix/lib/perl59" #Do not overwrite by default /usr/bin/perl of DG/UX installusrbinperl="$undef" # Configure may fail to find lstat() # function in . -d_lstat=define +d_lstat='define' -# Internal malloc is needed for correct operation -# of perl-5.7.x -# DG/UX native malloc is causing problems. -# Some perl tests they failing badly. +# Internal (perl) malloc is causing serious problems and +# test failures in DG/UX. Most notable Embed.t +# So for perl-5.7.3 and on do NOT use. # I have no time to investigate more. -# +# case "$usemymalloc" in -'') usemymalloc='y' ;; +'') usemymalloc='n' ;; esac case "$uselongdouble" in '') uselongdouble='y' ;; esac -#### No for threads ???? ##### #usevfork=true usevfork=false @@ -137,10 +137,10 @@ plibpth="$plibpth $sde_path/$sde/usr/lib" unset sde_path default_sde sde ##################################### -# +# ##################################### -libperl="libperl57.so" +libperl="libperl59.so" # Many functions (eg, gethostent(), killpg(), getpriority(), setruid() # dbm_*(), and plenty more) are defined in -ldgc. Usually you don't @@ -149,16 +149,17 @@ libperl="libperl57.so" # those functions as missing. ##################################### -# +# ##################################### # libswanted="dgc gdbm $libswanted" #libswanted="dbm posix $libswanted" -# Remove malloc since we use the internal perl one. +# Do *NOT* add there the malloc native +# DG/UX library! libswanted="dbm posix resolv socket nsl dl m" ##################################### -# +# ##################################### mydomain='.localhost' @@ -178,7 +179,7 @@ usedl=false # -G for loading. I haven't tested this. ##################################### -# +# # Use -fPIC instead -fpic ##################################### @@ -189,7 +190,7 @@ lddlflags="-shared" ############################################################################ # DGUX Posix 4A Draft 10 Thread support -# +# # use Configure -Dusethreads to enable ############################################################################ @@ -197,13 +198,17 @@ cat > UU/usethreads.cbu <<'EOCBU' case "$usethreads" in $define|true|[yY]*) ccflags="$ccflags" + # DG/UX has this for sure! Main Configure fails to + # detect it but it is needed! + d_pthread_atfork='define' shift # DG/UX's sched_yield is in -lrte - # Remove malloc since we use the internal perl one. + # Do *NOT* add there the malloc native + # DG/UX library! libswanted="dbm posix resolv socket nsl dl m rte" archname="ix86-dgux-thread" - sitearch="$prefix/lib/perl57/$archname" - sitelib="$prefix/lib/perl57" + sitearch="$prefix/lib/perl59/$archname" + sitelib="$prefix/lib/perl59" case "$cc" in *gcc*) #### Use GCC -2.95.2/3 rev (DG/UX) and -pthread @@ -212,7 +217,7 @@ $define|true|[yY]*) ld="gcc" ccflags="$ccflags -D_POSIX4A_DRAFT10_SOURCE" # Debug build : use -DS flag on command line perl - # ccflags="$ccflags -DDEBUGGING -D_POSIX4A_DRAFT10_SOURCE -pthread" + # ccflags="$ccflags -g -mstandard -DDEBUGGING -D_POSIX4A_DRAFT10_SOURCE -pthread" cccdlflags='-fPIC' lddlflags="-shared" #### Use GCC -2.95.2/3 rev (DG/UX) and -pthread