summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-common.inc
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-02-16 17:53:16 +0300
committerSergey Lapin <slapin@ossfans.org>2009-02-16 17:53:16 +0300
commit3fe1150b7afa91ee59dfa6346c1f7387638b7817 (patch)
treef8ebfebb52dcfdaf4c3d2ac48d42a400a6965c94 /packages/gcc/gcc-common.inc
parentaf306c58971bfa2e553d763e7b76fd510637fb55 (diff)
parent57916b57430f2d8ff4341ffcf1dfdcba9b433a92 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/gcc/gcc-common.inc')
-rw-r--r--packages/gcc/gcc-common.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/gcc/gcc-common.inc b/packages/gcc/gcc-common.inc
index 73bc327507..9e70af71a5 100644
--- a/packages/gcc/gcc-common.inc
+++ b/packages/gcc/gcc-common.inc
@@ -7,8 +7,11 @@ inherit autotools gettext
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
+# When making a Canadian SDK, we use these files too to make the compiler
+# for building for the new host part. So only obey TARGET_FPU for the
+# real target.
def get_gcc_fpu_setting(bb, d):
- if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ] and bb.data.getVar('TARGET_OS', d, 1) in [ 'linux' ]:
return "--with-float=soft"
return ""