Commit 026f9c05 authored by Tom Lane's avatar Tom Lane

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.
parent d84b6ef5
/* 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__) #if defined(__i386__) || defined(__x86_64__)
typedef unsigned char slock_t; typedef unsigned char slock_t;
......
CFLAGS=-O2 CFLAGS=-O2
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
CPPFLAGS="-D_GNU_SOURCE"
SUPPORTS_THREADS=yes SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03 NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment