summaryrefslogtreecommitdiff
path: root/ldso/util
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/util')
-rw-r--r--ldso/util/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/util/Makefile b/ldso/util/Makefile
index e61e1b62d..725fc9b8e 100644
--- a/ldso/util/Makefile
+++ b/ldso/util/Makefile
@@ -1,7 +1,7 @@
TOPDIR=../../
include $(TOPDIR)Rules.mak
-CFLAGS=-Wall -Os -I- -I../../include -I.
+CFLAGS=-Wall -Os -I- -I. --uclibc-use-build-dir
CC = $(TOPDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
all: ldconfig ldd readelf
@@ -23,7 +23,7 @@ readelf: readelf.c
$(CC) $(CFLAGS) readelf.c -o $@
ldconfig: ldconfig.o readsoname.o
- $(CC) $(CFLAGS) $^ -o $@
+ $(CC) $(CFLAGS) -static $^ -o $@
ldd: ldd.o readsoname.o
$(CC) $(CFLAGS) $^ -o $@