From 460caef23ff4da3ee374fad644510f57c0624fa5 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 10 Dec 2005 18:27:03 +0000 Subject: Solve warning about redefined _GNU_SOURCE, allow iconv to build --- utils/Makefile.in | 3 ++- utils/ldd.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/Makefile.in b/utils/Makefile.in index 884157c06..0571b5765 100644 --- a/utils/Makefile.in +++ b/utils/Makefile.in @@ -20,7 +20,8 @@ endif CFLAGS-ldd := $(CFLAGS-utils-common) $(CFLAGS-utils-shared) -D_GNU_SOURCE -CFLAGS-iconv := $(CFLAGS-utils-shared) -DL_iconv_main +# needs CFLAGS-utils explicitely, because the source file is not located in utils +CFLAGS-iconv := $(CFLAGS-utils) $(CFLAGS-utils-shared) -DL_iconv_main CFLAGS-readelf := $(CFLAGS-utils-shared) diff --git a/utils/ldd.c b/utils/ldd.c index 9196893cb..dbd2f6de8 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -26,7 +26,9 @@ * */ -#define _GNU_SOURCE +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include #include #include -- cgit v1.2.3