86a3e2f1f8d1bf891f612a06bd0c11734d8d49f8
[openwrt.git] / target / linux / generic / patches-2.6.38 / 015-strip_module_local_symbols.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -361,7 +361,7 @@
4  KBUILD_AFLAGS   := -D__ASSEMBLY__
5  KBUILD_AFLAGS_MODULE  := -DMODULE
6  KBUILD_CFLAGS_MODULE  := -DMODULE
7 -KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
8 +KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds -x
9  
10  # Read KERNELRELEASE from include/config/kernel.release (if it exists)
11  KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)