lantiq: rename ltq-vdsl-mei folder to ltq-vdsl-vr9-mei
[openwrt/staging/hauke.git] / package / kernel / lantiq / ltq-vdsl-vr9-mei / patches / 030-no-static-linking.patch
1 This removes -static compile option. The -static option tells GCC to
2 link this statically with the libc, which we do not want in OpenWrt. We
3 want to link everything dynamically to the libc. This fixes a compile
4 problem with glibc.
5
6 --- a/src/Makefile.am
7 +++ b/src/Makefile.am
8 @@ -198,10 +198,10 @@ AM_CFLAGS = -Wall -Wimplicit -Wunused -W
9
10 if IFXOS_ENABLE
11 AM_LDFLAGS= \
12 - -Bstatic -dn -static @IFXOS_LIBRARY_PATH@
13 + -Bstatic -dn @IFXOS_LIBRARY_PATH@
14 else
15 AM_LDFLAGS= \
16 - -Bstatic -dn -static
17 + -Bstatic -dn
18 endif
19
20 #
21 @@ -304,7 +304,7 @@ mei_cpe_appl_ldflags= $(ADD_APPL_LDFLAGS
22 else
23 if TARGET_ADM5120_MIPSEL
24 mei_cpe_appl_cflags = -O1 -g
25 -mei_cpe_appl_ldflags = -static
26 +mei_cpe_appl_ldflags =
27 else
28 mei_cpe_appl_cflags = -DPPC
29 endif
30 @@ -318,7 +318,7 @@ mei_cpe_drv_test_CPPFLAGS = -I@srcdir@\
31 mei_cpe_drv_test_CFLAGS = $(mei_cpe_app_common_cflags) \
32 $(mei_cpe_appl_cflags) $(MEI_DRV_TARGET_OPTIONS)
33
34 -mei_cpe_drv_test_LDFLAGS = $(mei_cpe_appl_ldflags) -Bstatic -dn -static @IFXOS_LIBRARY_PATH@
35 +mei_cpe_drv_test_LDFLAGS = $(mei_cpe_appl_ldflags) -Bstatic -dn @IFXOS_LIBRARY_PATH@
36
37 mei_cpe_drv_test_LDADD = -lifxos
38 endif
39 @@ -333,7 +333,7 @@ mei_cpe_drv_dbg_strm_dmp_CPPFLAGS = -I@s
40 -I@KERNEL_INCL_PATH@ $(IFXOS_INCLUDE_PATH)
41 mei_cpe_drv_dbg_strm_dmp_CFLAGS = $(mei_cpe_app_common_cflags) \
42 $(mei_cpe_appl_cflags) $(MEI_DRV_TARGET_OPTIONS)
43 -mei_cpe_drv_dbg_strm_dmp_LDFLAGS = $(mei_cpe_appl_ldflags) -Bstatic -dn -static @IFXOS_LIBRARY_PATH@
44 +mei_cpe_drv_dbg_strm_dmp_LDFLAGS = $(mei_cpe_appl_ldflags) -Bstatic -dn @IFXOS_LIBRARY_PATH@
45 mei_cpe_drv_dbg_strm_dmp_LDADD = -lifxos
46
47 # linux 2.6 kernel object - dummy to force dependencies