litecross: add dummy lib32 symlink to lib in build sysroot

at least mips n32 target seems to be breaking due to an expectation of
finding crti.o/crtn.o there during building of target libs.
This commit is contained in:
Rich Felker 2017-06-10 21:24:12 -04:00
parent 40005d3ff6
commit 100d309000
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,7 @@ FULL_MUSL_CONFIG += CC="$(XGCC)" LIBCC="../obj_toolchain/$(TARGET)/libgcc/libgcc
MUSL_VARS = AR=../obj_toolchain/binutils/ar RANLIB=../obj_toolchain/binutils/ranlib
obj_musl/.lc_configured: | obj_toolchain/gcc/.lc_built
obj_musl/.lc_built: | obj_toolchain/$(TARGET)/libgcc/libgcc.a
obj_toolchain/gcc/.lc_built: | obj_sysroot/usr obj_sysroot/lib64 obj_sysroot/include
obj_toolchain/gcc/.lc_built: | obj_sysroot/usr obj_sysroot/lib32 obj_sysroot/lib64 obj_sysroot/include
obj_toolchain/.lc_built: | obj_sysroot/.lc_libs obj_sysroot/.lc_headers
else
SYSROOT = /
@ -158,6 +158,9 @@ obj_sysroot/include:
obj_sysroot/usr: | obj_sysroot
ln -sf . $@
obj_sysroot/lib32: | obj_sysroot
ln -sf lib $@
obj_sysroot/lib64: | obj_sysroot
ln -sf lib $@