summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-19 15:25:58 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-19 15:25:58 +0000
commit47b8d1e2a80c1c7acc3e868d2d8e9689a023dd83 (patch)
tree82ae7daf9c62029b1dbd9c4e8d2cb2fad0115676 /hints
parentb430fd0465bf67481688d8bedfceb885abf2a170 (diff)
downloadperl-47b8d1e2a80c1c7acc3e868d2d8e9689a023dd83.tar.gz
Take away _GNU_SOURCE since that does not seem
to play well with other software (like Apache), just hint away the WHOAs. p4raw-id: //depot/perl@15328
Diffstat (limited to 'hints')
-rw-r--r--hints/linux.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index e1c2c28baf..d09f076e2b 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -249,18 +249,24 @@ esac
cat > UU/usethreads.cbu <<'EOCBU'
case "$usethreads" in
$define|true|[yY]*)
- ccflags="-D_GNU_SOURCE -D_REENTRANT $ccflags"
+ ccflags="-D_REENTRANT $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,
- # regardless of the -D_GNU_SOURCE that should turn on everything.
+ # the hasproto macro of Configure doesn't see these protos.
+ # -D_GNU_SOURCE has been suggested but it breaks other software
+ # (like Apache).
+
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_readdir64_r_proto="$define"
+
;;
esac
EOCBU