OSDN Git Service

Move -D_GNU_SOURCE hack from port header to template, so that
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Sep 2003 17:39:13 +0000 (17:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Sep 2003 17:39:13 +0000 (17:39 +0000)
configure's tests see the same compilation environment as the code.
Per discussion with Stephan Szabo.

src/include/port/linux.h
src/template/linux

index f6aacc6..c7d88e3 100644 (file)
@@ -1,9 +1,3 @@
-/* Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
-
-
 #if defined(__i386__) || defined(__x86_64__)
 typedef unsigned char slock_t;
 
index 0aab116..2c4f393 100644 (file)
@@ -1,4 +1,6 @@
 CFLAGS=-O2
+# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
+CPPFLAGS="-D_GNU_SOURCE"
 
 SUPPORTS_THREADS=yes
 NEED_REENTRANT_FUNCS=yes       # verified glibc 2.1 2003-09-03