summaryrefslogtreecommitdiff
path: root/utils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/Makefile')
-rw-r--r--utils/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 6b89974c5..0f02a2e06 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -45,7 +45,7 @@ readelf: readelf.c
$(STRIPTOOL) -x -R .note -R .comment $@
ldconfig: ldconfig.c
- $(CC) $(CFLAGS) -Wl,-s -static \
+ $(CC) $(CFLAGS) -Wl,-s $(if $(filter $(UCLIBC_STATIC_LDCONFIG),y),-static) \
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
-DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \
$^ -o $@