From f4ccd410b99fda5c6e6eb694a22f96eb9f61060d5e7e1b0ea48d588378f6a756 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 21 Feb 2018 13:44:58 +0000 Subject: [PATCH] Grummble ... giving up for now OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=113 --- clisp.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/clisp.spec b/clisp.spec index fe9da03..7ad97d5 100644 --- a/clisp.spec +++ b/clisp.spec @@ -184,7 +184,17 @@ else MYCFLAGS="${MYCFLAGS} -D_GNU_SOURCE" fi MYCFLAGS="${MYCFLAGS} -Wno-unused -Wno-uninitialized -Wno-implicit-fallthrough -Wno-volatile-register-var" +# From src/makemake.in +# +# Do NOT enable -DSAFETY=3 here, because -DSAFETY=3 not only disables some +# optimizations but also enables some debugging features (STACKCHECKs), which +# is not in the scope of --enable-portability. +# +%ifarch s390x +port='--enable-portability' +%else port='' +%endif case "$(uname -m)" in i[0-9]86) MYCFLAGS="${MYCFLAGS}" ;; @@ -196,8 +206,7 @@ case "$(uname -m)" in sparc*) MYCFLAGS="${MYCFLAGS} ${safety}" ;; ppc64) MYCFLAGS="${MYCFLAGS} ${safety}" ;; ppc64le)MYCFLAGS="${MYCFLAGS} ${safety}" ;; - s390x) MYCFLAGS="${MYCFLAGS} ${safety} -DSAFETY=3" - port=--enable-portabilit ;; + s390x) MYCFLAGS="${MYCFLAGS} ${safety}" ;; ia64) MYCFLAGS="${MYCFLAGS} ${safety}" ;; axp|alpha) MYCFLAGS="${MYCFLAGS}" ;;