]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/uclibc/uclibc-0.9.27/dyn-ldconfig.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / uclibc / uclibc-0.9.27 / dyn-ldconfig.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- uClibc/utils/Makefile~dyn-ldconfig
7 +++ uClibc/utils/Makefile
8 @@ -45,7 +45,7 @@
9         $(STRIPTOOL) -x -R .note -R .comment $@
10  
11  ldconfig:      ldconfig.c
12 -       $(CC) $(CFLAGS) -Wl,-s -static \
13 +       $(CC) $(CFLAGS) -Wl,-s $(if $(filter $(UCLIBC_STATIC_LDCONFIG),y),-static) \
14                 -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
15                 -DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \
16                 $^ -o $@
17 --- uClibc/extra/Configs/Config.in~dyn-ldconfig
18 +++ uClibc/extra/Configs/Config.in
19 @@ -311,6 +311,15 @@
20           if you are using an older Linux kernel (2.0.x) that lacks large file 
21           support.  Enabling this option will increase the size of uClibc.
22  
23 +config UCLIBC_STATIC_LDCONFIG
24 +       bool "Link ldconfig statically"
25 +       default y
26 +       help
27 +         If you wish to link the ldconfig binary statically, enable this option.
28 +         It being static can be beneficial if you have a library problem and need
29 +         ldconfig to recover from it.  If keeping the size down is more important
30 +         to you than system recovery, disable this option.
31 +
32  choice
33         prompt "Malloc Implementation"
34         default MALLOC if ! ARCH_HAS_MMU