From fd6cf33da73434f285d7ed4ecce4cb20eeeb141a Mon Sep 17 00:00:00 2001 From: doko Date: Wed, 25 Apr 2012 11:08:54 +0000 Subject: - refactor setting the ARM target arch git-svn-id: svn://svn.debian.org/svn/gcccvs/branches/sid/gcc-4.7@5981 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca --- debian/rules.defs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'debian/rules.defs') diff --git a/debian/rules.defs b/debian/rules.defs index 220221b..fccfcbc 100644 --- a/debian/rules.defs +++ b/debian/rules.defs @@ -265,11 +265,14 @@ envfilt = $(strip $(or $(call lfilt,$(1),$(2)),$(call nlfilt,$(1),$(3)),$(call w # FIXME: libjava is not ported for thumb, this hack only works for # separate gcj builds ifeq (,$(findstring gcj,$(PKGSOURCE))) - ifeq ($(distribution),Ubuntu) - with_arm_thumb := yes - endif ifeq ($(DEB_TARGET_ARCH),armhf) with_arm_thumb := yes + else + ifeq ($(distribution)-$(DEB_TARGET_ARCH),Ubuntu-armel) + ifneq (,$(filter $(distrelease),lucid maverick natty oneiric precise)) + with_arm_thumb := yes + endif + endif endif endif @@ -286,7 +289,11 @@ endif ifeq ($(DEB_TARGET_ARCH),armhf) float_abi := hard else ifneq (,$(filter $(distribution)-$(DEB_TARGET_ARCH), Ubuntu-armel)) - float_abi := softfp + ifneq (,$(filter $(distrelease),lucid maverick natty oneiric precise)) + float_abi := softfp + else + float_abi := soft + endif else ifneq (,$(filter $(DEB_TARGET_ARCH), arm armel)) float_abi := soft endif -- cgit v1.2.3