diff options
author | Alexey Neyman <stilor@att.net> | 2018-05-25 23:57:29 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-06-05 00:16:37 -0700 |
commit | 07ec87f14f2bb078235a7db25d4a923e9319f53c (patch) | |
tree | 2b1f357525d71bdc1ca609ce1ae69c938e7fd057 /scripts/build/companion_libs | |
parent | ec384f2b9fa1337c7bbcd7ed7e972516bd696b3b (diff) | |
download | crosstool-ng-07ec87f14f2bb078235a7db25d4a923e9319f53c.tar.gz crosstool-ng-07ec87f14f2bb078235a7db25d4a923e9319f53c.tar.bz2 crosstool-ng-07ec87f14f2bb078235a7db25d4a923e9319f53c.zip |
Avoid adding arch/cpu/tune flags for target to GCC build
... as it may need to override them for building runtime-selectable code.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/companion_libs')
-rw-r--r-- | scripts/build/companion_libs/200-libelf.sh | 2 | ||||
-rw-r--r-- | scripts/build/companion_libs/210-expat.sh | 2 | ||||
-rw-r--r-- | scripts/build/companion_libs/220-ncurses.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/companion_libs/200-libelf.sh b/scripts/build/companion_libs/200-libelf.sh index 5f1a8d73..f0d8be47 100644 --- a/scripts/build/companion_libs/200-libelf.sh +++ b/scripts/build/companion_libs/200-libelf.sh @@ -81,7 +81,7 @@ do_libelf_for_target() { libelf_opts+=( "destdir=${CT_SYSROOT_DIR}" ) libelf_opts+=( "host=${CT_TARGET}" ) - libelf_opts+=( "cflags=${CT_TARGET_CFLAGS}" ) + libelf_opts+=( "cflags=${CT_ALL_TARGET_CFLAGS}" ) libelf_opts+=( "prefix=${prefix}" ) libelf_opts+=( "shared=${CT_SHARED_LIBS}" ) do_libelf_backend "${libelf_opts[@]}" diff --git a/scripts/build/companion_libs/210-expat.sh b/scripts/build/companion_libs/210-expat.sh index f8485410..75a78bf7 100644 --- a/scripts/build/companion_libs/210-expat.sh +++ b/scripts/build/companion_libs/210-expat.sh @@ -54,7 +54,7 @@ do_expat_for_target() { prefix="/usr" ;; esac - expat_opts+=( "cflags=${CT_TARGET_CFLAGS}" ) + expat_opts+=( "cflags=${CT_ALL_TARGET_CFLAGS}" ) expat_opts+=( "prefix=${prefix}" ) expat_opts+=( "destdir=${CT_SYSROOT_DIR}" ) expat_opts+=( "shared=${CT_SHARED_LIBS}" ) diff --git a/scripts/build/companion_libs/220-ncurses.sh b/scripts/build/companion_libs/220-ncurses.sh index 97fb8340..b5dee138 100644 --- a/scripts/build/companion_libs/220-ncurses.sh +++ b/scripts/build/companion_libs/220-ncurses.sh @@ -97,7 +97,7 @@ do_ncurses_for_target() { prefix="${prefix}" \ destdir="${CT_SYSROOT_DIR}" \ shared="${CT_SHARED_LIBS}" \ - cflags="${CT_TARGET_CFLAGS}" \ + cflags="${CT_ALL_TARGET_CFLAGS}" \ "${opts[@]}" CT_Popd CT_EndStep |