summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-24 14:55:18 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-24 14:55:18 +0000
commit65ae79fb1601aa207c6b9f7ec8f751eb313a74c3 (patch)
tree994a73117c8e31193f5bbecbc0884b86174358d9 /utils
parentb6d51d28921a42fc174f7daac2f94171bc18a1c2 (diff)
Move _GNU_SOURCE from file to CFLAGS, make use of NATIVE_LDFLAGS
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile.in4
-rw-r--r--utils/ldd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/Makefile.in b/utils/Makefile.in
index d5b4da568..c955d0cfe 100644
--- a/utils/Makefile.in
+++ b/utils/Makefile.in
@@ -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
diff --git a/utils/ldd.c b/utils/ldd.c
index a857127a8..319f0bfdc 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -26,8 +26,6 @@
*
*/
-
-#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>