Skip to content

Commit 026f9c0

Browse files
committed
Move -D_GNU_SOURCE hack from port header to template, so that
configure's tests see the same compilation environment as the code. Per discussion with Stephan Szabo.
1 parent d84b6ef commit 026f9c0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/include/port/linux.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/* Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise */
2-
#ifndef _GNU_SOURCE
3-
#define _GNU_SOURCE 1
4-
#endif
5-
6-
71
#if defined(__i386__) || defined(__x86_64__)
82
typedef unsigned char slock_t;
93

src/template/linux

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
CFLAGS=-O2
2+
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
3+
CPPFLAGS="-D_GNU_SOURCE"
24

35
SUPPORTS_THREADS=yes
46
NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03

0 commit comments

Comments
 (0)