diff options
Diffstat (limited to 'packages/uclibc/uclibc-cvs/dyn-ldconfig.patch')
-rw-r--r-- | packages/uclibc/uclibc-cvs/dyn-ldconfig.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/uclibc/uclibc-cvs/dyn-ldconfig.patch b/packages/uclibc/uclibc-cvs/dyn-ldconfig.patch index e69de29bb2..a053b9ee81 100644 --- a/packages/uclibc/uclibc-cvs/dyn-ldconfig.patch +++ b/packages/uclibc/uclibc-cvs/dyn-ldconfig.patch @@ -0,0 +1,34 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- uClibc/utils/Makefile~dyn-ldconfig ++++ uClibc/utils/Makefile +@@ -45,7 +45,7 @@ + $(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 $@ +--- uClibc/extra/Configs/Config.in~dyn-ldconfig ++++ uClibc/extra/Configs/Config.in +@@ -311,6 +311,15 @@ + if you are using an older Linux kernel (2.0.x) that lacks large file + support. Enabling this option will increase the size of uClibc. + ++config UCLIBC_STATIC_LDCONFIG ++ bool "Link ldconfig statically" ++ default y ++ help ++ If you wish to link the ldconfig binary statically, enable this option. ++ It being static can be beneficial if you have a library problem and need ++ ldconfig to recover from it. If keeping the size down is more important ++ to you than system recovery, disable this option. ++ + choice + prompt "Malloc Implementation" + default MALLOC if ! ARCH_HAS_MMU |