OSDN Git Service

Move _GNU_SOURCE from file to CFLAGS, make use of NATIVE_LDFLAGS
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 24 Nov 2005 14:55:18 +0000 (14:55 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 24 Nov 2005 14:55:18 +0000 (14:55 -0000)
utils/Makefile.in
utils/ldd.c

index d5b4da5..c955d0c 100644 (file)
@@ -18,7 +18,7 @@ else
 CFLAGS-ldconfig += $(CFLAGS-utils-shared)
 endif
 
-CFLAGS-ldd := $(CFLAGS-utils-common) $(CFLAGS-utils-shared)
+CFLAGS-ldd := $(CFLAGS-utils-common) $(CFLAGS-utils-shared) -D_GNU_SOURCE
 
 CFLAGS-iconv := $(CFLAGS-utils-shared) -DL_iconv_main
 
@@ -36,6 +36,8 @@ HOSTCFLAGS-ldconfig.host := $(HOSTCFLAGS-utils-common)
 
 HOSTCFLAGS-ldd.host := $(HOSTCFLAGS-utils-common) -D_GNU_SOURCE
 
+NATIVE_LDFLAGS-utils := -Wl,-s
+
 utils_DIR := $(top_srcdir)utils
 utils_OUT := $(top_builddir)utils
 
index a857127..319f0bf 100644 (file)
@@ -26,8 +26,6 @@
  *
  */
 
-
-#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>