summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-21 23:48:05 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-21 23:48:05 +0000
commitdccf984009f8d33aa8b8c0a3be7349c66153795b (patch)
tree71d13ed0523bce74238d11aeb76df0a480957990 /utils
parent949778366681cd167816e968fa02f225fc2e8fba (diff)
touchup CFLAGS and also link the link.h header file like we do with elf.h
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 4225ade87..83dc7b190 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -39,6 +39,7 @@ endif
headers:
@$(LN) -fs $(TOPDIR)include/elf.h
+ @$(LN) -fs $(TOPDIR)include/link.h
readelf.c ldconfig.c ldd.c: headers
@@ -58,15 +59,17 @@ ldconfig: ldconfig.c
$^ -o $@
$(STRIPTOOL) -s -x -R .note -R .comment $@
+LDD_CFLAGS := $(PIEFLAG) $(LDPIEFLAG)
ldd: ldd.c
- $(CC) $(CFLAGS) $(PIEFLAG) $(LDPIEFLAG) \
+ $(CC) $(CFLAGS) $(LDD_CFLAGS) \
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
-DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \
$^ -o $@
$(STRIPTOOL) -s -x -R .note -R .comment $@
+ICONV_CFLAGS := $(PIEFLAG) $(LDPIEFLAG)
iconv: ../libc/misc/wchar/wchar.c
- $(CC) $(CFLAGS) $(PIEFLAG) $(LDPIEFLAG) \
+ $(CC) $(CFLAGS) $(ICONV_CFLAGS) \
-DL_iconv_main \
$^ -o $@
$(STRIPTOOL) -s -x -R .note -R .comment $@
@@ -93,7 +96,7 @@ readelf.host: readelf.c
$(HOSTCC) $(HOSTCFLAGS) -Wl,-s $^ -o $@
clean:
- $(RM) $(TARGETS) *.o *~ core *.target elf.h iconv *.host
+ $(RM) $(TARGETS) *.o *~ core *.target elf.h link.h iconv *.host
install: all
ifeq ($(strip $(HAVE_SHARED)),y)