toolchain-external: add missing symlink for Linaro toolchains
In 11ec38b695
("toolchain-external: fix Linaro ARM toolchain
support"), we fixed the support for Linaro EABIhf toolchains by adding
a /lib/arm-linux-gnueabihf -> /lib symbolic link. This is needed
because the dynamic loader looks for libraries in
/lib/arm-linux-gnueabihf rather than the usual /lib, but Buildroot
installs all libraries in /lib.
However, we forgot that the dynamic loader also loads libraries from
/usr/lib/arm-linux-gnueabihf rather than /usr/lib, so this patch fixes
that by adding the necessary symbolic link.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reported-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
parent
1690fca464
commit
b3e3d5fc28
@ -229,10 +229,11 @@ TOOLCHAIN_EXTERNAL_WRAPPER_ARGS += -DBR_SOFTFLOAT=1
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# The Linaro ARMhf toolchain expects the libraries in
|
# The Linaro ARMhf toolchain expects the libraries in
|
||||||
# /lib/arm-linux-gnueabihf, but Buildroot copies them to /lib, so we
|
# {/usr,}/lib/arm-linux-gnueabihf, but Buildroot copies them to
|
||||||
# need to create a symbolic link.
|
# {/usr,}/lib, so we need to create a symbolic link.
|
||||||
define TOOLCHAIN_EXTERNAL_LINARO_ARMHF_SYMLINK
|
define TOOLCHAIN_EXTERNAL_LINARO_ARMHF_SYMLINK
|
||||||
ln -sf . $(TARGET_DIR)/lib/arm-linux-gnueabihf
|
ln -sf . $(TARGET_DIR)/lib/arm-linux-gnueabihf
|
||||||
|
ln -sf . $(TARGET_DIR)/usr/lib/arm-linux-gnueabihf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201109),y)
|
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201109),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user