mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
Fix uClibc build for noMMU target
uclibc_backend_once tries to build dummy shared libraries regardless of whether shared libraries support for target is enabled or not, resulting in build failure in noMMU bFLT configuration. Only build dummy shared libraries when shared library support for target is enabled. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
f8ed7002c6
commit
4f360146eb
@ -153,6 +153,7 @@ uClibc_backend_once()
|
|||||||
CT_DoExecLog ALL make ${jflag} "${make_args[@]}" \
|
CT_DoExecLog ALL make ${jflag} "${make_args[@]}" \
|
||||||
lib/crt1.o lib/crti.o lib/crtn.o
|
lib/crt1.o lib/crti.o lib/crtn.o
|
||||||
|
|
||||||
|
if [ "${CT_SHARED_LIBS}" = "y" ]; then
|
||||||
# From: http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=ad5668a7ac7e0436db92e55caaf3fdf782b6ba3b
|
# From: http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=ad5668a7ac7e0436db92e55caaf3fdf782b6ba3b
|
||||||
# libm.so is needed for ppc, as libgcc is linked against libm.so
|
# libm.so is needed for ppc, as libgcc is linked against libm.so
|
||||||
# No problem to create it for other archs.
|
# No problem to create it for other archs.
|
||||||
@ -167,6 +168,7 @@ uClibc_backend_once()
|
|||||||
CT_DoLog EXTRA "Installing dummy shared libs"
|
CT_DoLog EXTRA "Installing dummy shared libs"
|
||||||
CT_DoExecLog ALL install -m 0755 libdummy.so "${startfiles_dir}/libc.so"
|
CT_DoExecLog ALL install -m 0755 libdummy.so "${startfiles_dir}/libc.so"
|
||||||
CT_DoExecLog ALL install -m 0755 libdummy.so "${startfiles_dir}/libm.so"
|
CT_DoExecLog ALL install -m 0755 libdummy.so "${startfiles_dir}/libm.so"
|
||||||
|
fi # CT_SHARED_LIBS == y
|
||||||
fi # CT_THREADS == nptl
|
fi # CT_THREADS == nptl
|
||||||
fi # libc_mode == startfiles
|
fi # libc_mode == startfiles
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user