mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
Select flat/FDPIC in accordance with ct-ng setting
uClibc-ng 1.0.31 enabled FDPIC as an option for ARM/no-MMU configurations and defaults to that option if not set explicitly. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
16efa9d3e7
commit
8088c6ef47
@ -237,6 +237,15 @@ manage_uClibc_config()
|
||||
CT_KconfigEnableOption "ARCH_USE_MMU" "${dst}"
|
||||
else
|
||||
CT_KconfigDisableOption "ARCH_USE_MMU" "${dst}"
|
||||
CT_KconfigDisableOption "UCLIBC_FORMAT_FDPIC" "${dst}"
|
||||
CT_KconfigDisableOption "UCLIBC_FORMAT_FLAT" "${dst}"
|
||||
CT_KconfigDisableOption "UCLIBC_FORMAT_SHARED_FLAT" "${dst}"
|
||||
case "${CT_ARCH_BINFMT_FLAT},${CT_ARCH_BINFMT_FDPIC},${CT_SHARED_LIBS}" in
|
||||
y,,y) CT_KconfigEnableOption "UCLIBC_FORMAT_SHARED_FLAT" "${dst}";;
|
||||
y,,) CT_KconfigEnableOption "UCLIBC_FORMAT_FLAT" "${dst}";;
|
||||
,y,*) CT_KconfigEnableOption "UCLIBC_FORMAT_FDPIC" "${dst}";;
|
||||
*) CT_Abort "Unsupported binary format";;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "${CT_SHARED_LIBS}" = "y" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user