summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-01-16 05:38:32 +0000
committerEric Andersen <andersen@codepoet.org>2005-01-16 05:38:32 +0000
commitb8728981627f7035fb89323d074192b6ff49ea8c (patch)
treec1454b0d71e5ac9efd838e0c93626d763ff91573 /utils
parent5196d3e60656fe05f6b2070f428206d0e051290b (diff)
Per http://bugs.uclibc.org/view.php?id=15, patch from kergoth:
Sometimes it is desirable to build ldconfig non-static.
Diffstat (limited to 'utils')
-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 $@