diff options
-rwxr-xr-x | build | 4 | ||||
-rw-r--r-- | targets.d/core-linux-eglibc.sh | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -82,6 +82,10 @@ $(build_targets): configure sed "s|^\($${define_pattern}\) \".*\"$$|\1 \"$(elf_interp)\"|" \ "src/gcc/config/$${gcc_config_file}~" \ >"src/gcc/config/$${gcc_config_file}"; \ + sed "$${gcc_config_fragment_script}" \ + >"src/gcc/config/$${gcc_config_fragment}~"; \ + mv "src/gcc/config/$${gcc_config_fragment}~" \ + "src/gcc/config/$${gcc_config_fragment}"; \ printf '\nMULTIARCH_DIRNAME = %s\n' "$(target)" \ >>"src/gcc/config/$${gcc_config_fragment}" if [ "x$(target)" = 'x$(OPK_HOST_ARCH)' ]; then \ diff --git a/targets.d/core-linux-eglibc.sh b/targets.d/core-linux-eglibc.sh index f93eddc..e4b0017 100644 --- a/targets.d/core-linux-eglibc.sh +++ b/targets.d/core-linux-eglibc.sh @@ -1,3 +1,4 @@ gcc_config_file='i386/linux64.h' gcc_config_interp_macro='GLIBC_DYNAMIC_LINKER64' gcc_config_fragment='i386/t-linux64' +gcc_config_fragment_script='s/\(m64=.*:\)x86_64-linux-gnu/\1core-linux-eglibc/' |