diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2017-02-18 22:40:54 +0100 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2017-02-19 22:27:14 +0100 |
| commit | 0d81107f021bf2a663f102bace1e3f9590641170 (patch) | |
| tree | ba6dff70dd1fd14ab6d483b1525782666335428d /package/kmod | |
| parent | fceb1afd5dda45cf180f22877a6ab0e51d1b3dac (diff) | |
| download | buildroot-0d81107f021bf2a663f102bace1e3f9590641170.tar.gz buildroot-0d81107f021bf2a663f102bace1e3f9590641170.zip | |
kmod: workaround for microblaze ld bug
Add a workaround for a microblaze specific ld bug to avoid
segfault.
Fixes:
http://autobuild.buildroot.net/results/aef1b915ffd3e5678af8682727c22c5618edfd89
[Peter: force --gc-sections configure check to false instead of patching
configure]
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/kmod')
| -rw-r--r-- | package/kmod/kmod.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk index 7492b926f0..407d90d817 100644 --- a/package/kmod/kmod.mk +++ b/package/kmod/kmod.mk @@ -15,6 +15,12 @@ HOST_KMOD_DEPENDENCIES = host-pkgconf KMOD_LICENSE = LGPLv2.1+ (library) KMOD_LICENSE_FILES = libkmod/COPYING +# --gc-sections triggers binutils ld segfault +# https://sourceware.org/bugzilla/show_bug.cgi?id=21180 +ifeq ($(BR2_microblaze),y) +KMOD_CONF_ENV += cc_cv_LDFLAGS__Wl___gc_sections=false +endif + # static linking not supported, see # https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=b7016153ec8 KMOD_CONF_OPTS = --disable-static --enable-shared |

