diff options
author | Samuel Thibault <sthibault@debian.org> | 2016-05-30 11:11:00 -0400 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2016-05-30 11:17:42 -0400 |
commit | 4694301214bd05a1f063a10ecef2406f849bb30f (patch) | |
tree | c81ebd07cb0fd2390c7f86b727d2855147800482 /hints | |
parent | 58818a660dce0bbd7c77e5be9d0b7c86d30979af (diff) | |
download | perl-4694301214bd05a1f063a10ecef2406f849bb30f.tar.gz |
Modify hints for Hurd per Debian ticket 825020.
For: RT #128279
Patch written by Samuel Thibault, forwarded by Dominic Hargreaves.
Diffstat (limited to 'hints')
-rw-r--r-- | hints/gnu.sh | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/hints/gnu.sh b/hints/gnu.sh index fe251cbc90..8ec9470183 100644 --- a/hints/gnu.sh +++ b/hints/gnu.sh @@ -1,6 +1,5 @@ # hints/gnu.sh -# Last modified: Thu Dec 10 20:47:28 CET 1998 -# Mark Kettenis <kettenis@phys.uva.nl> +# Originally contributed by: Mark Kettenis <kettenis@phys.uva.nl> Dec 10 1998 # libnsl is unusable on the Hurd. # XXX remove this once SUNRPC is implemented. @@ -30,8 +29,34 @@ lddlflags='-shared' # Flags needed by programs that use dynamic linking. ccdlflags='-Wl,-E' -# Debian bug #258618 -ccflags="-D_GNU_SOURCE $ccflags" +# 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" + if echo $libswanted | grep -v pthread >/dev/null + then + set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` + shift + libswanted="$*" + fi + + # 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 |