diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2017-06-30 21:31:37 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2017-08-09 18:51:41 +0300 |
commit | 8b23923640caa575874dfff8a5d05ca60617b42f (patch) | |
tree | 8fba3b0adb1d491f7308c864d6101ddf94ccdef9 /Makefile.compel | |
parent | 7ce8f56be27ca372f3ed028ab0cb655dcf0abd62 (diff) |
s390:compel: Enable s390 in compel/
Add s390 parts to common code files.
Patch history
-------------
v2->v3:
* Add: s390: Consolidate -msoft-float into Makefile.compel
Reviewed-by: Alice Frosi <alice@linux.vnet.ibm.com>
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'Makefile.compel')
-rw-r--r-- | Makefile.compel | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.compel b/Makefile.compel index 1ef7f8cb2..9b40079b3 100644 --- a/Makefile.compel +++ b/Makefile.compel @@ -70,3 +70,11 @@ compel/$(LIBCOMPEL_SO): compel/$(LIBCOMPEL_A) compel-install-targets += compel/$(LIBCOMPEL_SO) compel-install-targets += compel/compel compel-install-targets += $(compel-plugins) + +# We assume that compel code does not change floating point registers. +# On s390 gcc uses fprs to cache gprs. Therefore disable floating point +# with -msoft-float. +ifeq ($(ARCH),s390) +CFLAGS += -msoft-float +HOSTCFLAGS += -msoft-float +endif |