bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl tests


From: Marcus Brinkmann
Subject: Re: Perl tests
Date: Sat, 12 Oct 2002 22:54:51 +0200
User-agent: Mutt/1.4i

On Tue, Oct 01, 2002 at 03:18:16PM +0200, Michal 'hramrach' Suchanek wrote:
> I managed to compile enough of perl 5.8 (5.8.0-13 deb) to run the tests.
> I got the source package, did
> 
> --- hints/gnu.sh~     Tue Oct  1 11:40:02 2002
> +++ hints/gnu.sh      Tue Oct  1 11:40:57 2002
> @@ -6,7 +6,8 @@
>  # XXX remove this once SUNRPC is implemented.
>  set `echo X "$libswanted "| sed -e 's/ nsl / /'`
>  shift
> -libswanted="$*"
> +# XXX add required libs _before_ libc
> +libswanted="pthread ihash ""$*"
>  
>  case "$optimize" in

This is my current working diff:

--- hints/gnu.sh.org    2002-10-13 00:40:30.000000000 +0200
+++ hints/gnu.sh        2002-10-13 00:49:58.000000000 +0200
@@ -4,12 +4,31 @@
 
 # libnsl is unusable on the Hurd.
 # XXX remove this once SUNRPC is implemented.
-set `echo X "$libswanted "| sed -e 's/ nsl / /'`
+# 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl.
+set `echo X "$libswanted "| sed -e 's/ nsl / /' -e 's/ net / /'`
 shift
 libswanted="$*"
 
+# Some operating systems (e.g., Solaris 2.6) will link to a versioned
+# shared library implicitly.  For example, on Solaris, `ld foo.o
+# -lgdbm' will find an appropriate version of libgdbm, if one is
+# available; The GNU/Hurd, however, doesn't do the implicit mapping.
+ignore_versioned_solibs='y'
+
 case "$optimize" in
-'') optimize='-O2' ;;
+'') # If we have modern enough gcc and well-supported enough CPU,
+    # crank up the optimization level.
+    case "`${cc:-gcc} -v 2>&1`" in
+    *"gcc version 2.95"*|*"gcc version 3."*)
+        case "`arch 2>&1`" in
+        i?86|ppc) optimize='-O3' ;;
+        esac
+        ;;
+    esac
+    case "$optimize" in
+    '') optimize='-O2' ;;
+    esac
+    ;;
 esac
 
 # Flags needed to produce shared libraries.
@@ -31,3 +50,53 @@
 d_shmctl='undef'
 d_shmdt='undef'
 d_shmget='undef'
+
+# Configure may fail to find lstat() since it's a static/inline
+# function in <sys/stat.h>.
+d_lstat=define
+
+# The system malloc() is about as fast and as frugal as perl's. 
+# Since the system malloc() has been the default since at least
+# 5.001, we might as well leave it that way.  --AD  10 Jan 2002
+case "$usemymalloc" in
+'') usemymalloc='n' ;;
+esac
+
+# This script UU/usethreads.cbu will get 'called-back' by Configure 
+# after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOCBU'
+case "$usethreads" in
+$define|true|[yY]*)
+        ccflags="-D_REENTRANT -D_GNU_SOURCE $ccflags"
+        set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
+        shift
+        libswanted="$*"
+
+       # Somehow at least in Debian 2.2 these manage to escape
+       # the #define forest of <features.h> and <time.h> so that
+       # the hasproto macro of Configure doesn't see these protos,
+       # even with the -D_GNU_SOURCE.
+
+       d_asctime_r_proto="$define"
+       d_crypt_r_proto="$define"
+       d_ctime_r_proto="$define"
+       d_gmtime_r_proto="$define"
+       d_localtime_r_proto="$define"
+       d_random_r_proto="$define"
+
+       ;;
+esac
+EOCBU
+
+cat > UU/uselargefiles.cbu <<'EOCBU'
+# This script UU/uselargefiles.cbu will get 'called-back' by Configure 
+# after it has prompted the user for whether to use large files.
+case "$uselargefiles" in
+''|$define|true|[yY]*)
+# Keep this in the left margin.
+ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+
+       ccflags="$ccflags $ccflags_uselargefiles"
+       ;;
+esac
+EOCBU

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]