mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-23 09:33:00 +08:00
Move '-D_GNU_SOURCE' to 'configure'
This commit is contained in:
parent
881ccee066
commit
bf7b4611c4
2
Makefile
2
Makefile
@ -22,7 +22,7 @@ LOBJS = src/nameinfo.o src/version.o \
|
|||||||
|
|
||||||
GENH = src/version.h
|
GENH = src/version.h
|
||||||
|
|
||||||
CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
|
CFLAGS += -Wall -O0 -g -std=c99 -pipe
|
||||||
NO_AS_NEEDED = -Wl,--no-as-needed
|
NO_AS_NEEDED = -Wl,--no-as-needed
|
||||||
LIBDL = -ldl
|
LIBDL = -ldl
|
||||||
LDFLAGS = -fPIC $(NO_AS_NEEDED) $(LIBDL) -lpthread
|
LDFLAGS = -fPIC $(NO_AS_NEEDED) $(LIBDL) -lpthread
|
||||||
|
3
configure
vendored
3
configure
vendored
@ -142,6 +142,9 @@ if [ -z "$CC" ] ; then
|
|||||||
CC=cc
|
CC=cc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
check_compile "whether fine to define _GNU_SOURCE" "-D_GNU_SOURCE" \
|
||||||
|
'#include <unistd.h>\nint main() { return 0; }'
|
||||||
|
|
||||||
for i in 700 600; do
|
for i in 700 600; do
|
||||||
check_compile "whether _XOPEN_SOURCE=$i is suitable for C99 mode" "-D_XOPEN_SOURCE=$i" "#include <unistd.h>" && break
|
check_compile "whether _XOPEN_SOURCE=$i is suitable for C99 mode" "-D_XOPEN_SOURCE=$i" "#include <unistd.h>" && break
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user