diff options
author | P. J. McDermott <pjm@nac.net> | 2013-06-28 13:01:16 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-06-28 13:01:16 (EDT) |
commit | f55816336905c41ffb363710b33fee840581e951 (patch) | |
tree | f8174745170eeee51304e02edc79a4558d9a5a33 | |
parent | bf39e1548cf4dc4642803da931e69b56365fe1b1 (diff) |
Set target options when configuring GCC.
-rwxr-xr-x | build | 8 | ||||
-rw-r--r-- | targets.d/core-linux-eglibc.sh | 1 |
2 files changed, 7 insertions, 2 deletions
@@ -62,12 +62,16 @@ nop: >../local.mk $(configure_targets): + set -e; \ + . "../targets.d/$(target).sh"; \ if [ 'x$(OPK_HOST_PLAT)' = 'xbootstrap1' ]; then \ oh-autoconfigure -B "$(builddir)" -t "$(target)" -- \ - $(bootstrap1_opts); \ + $(bootstrap1_opts) \ + $${target_opts}; \ else \ oh-autoconfigure -B "$(builddir)" -t "$(target)" -- \ - $(full_opts); \ + $(full_opts) \ + $${target_opts}; \ fi touch $@ diff --git a/targets.d/core-linux-eglibc.sh b/targets.d/core-linux-eglibc.sh index 5c1dde5..b35f7e5 100644 --- a/targets.d/core-linux-eglibc.sh +++ b/targets.d/core-linux-eglibc.sh @@ -2,3 +2,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|\1:core-linux-eglibc|' +target_opts='--with-arch=core2 --with-tune=core2' |