.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=72
This commit is contained in:
parent
720268b7fd
commit
42f8c938d6
32
clisp.spec
32
clisp.spec
@ -158,49 +158,51 @@ if test %debug = yes ; then
|
|||||||
else
|
else
|
||||||
CC="gcc"
|
CC="gcc"
|
||||||
fi
|
fi
|
||||||
CC="${CC} -g ${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -pipe"
|
CC="${CC} -g ${RPM_OPT_FLAGS} -falign-functions=4 -fno-strict-aliasing -fPIC -pipe"
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
i[0-9]86)
|
i[0-9]86)
|
||||||
CC="${CC} -falign-functions=4 -mieee-fp -ffloat-store" ;;
|
CC="${CC} -mieee-fp -ffloat-store" ;;
|
||||||
arm*) CC="${CC}" ;;
|
arm*) CC="${CC}" ;;
|
||||||
aarch64)CC="${CC}" ;;
|
aarch64)CC="${CC}" ;;
|
||||||
ppc) CC="${CC}" ;;
|
ppc) CC="${CC}" ;;
|
||||||
s390) CC="${CC}" ;;
|
s390) CC="${CC}" ;;
|
||||||
x86_64) CC="${CC} -fno-gcse" ;;
|
x86_64) CC="${CC} -fno-gcse" ;;
|
||||||
sparc*) CC="${CC} -fno-gcse" ;;
|
sparc*) CC="${CC} -mcpu=v9 -fno-gcse" ;;
|
||||||
ppc64) CC="${CC} -fno-gcse -mpowerpc64" ;;
|
ppc64) CC="${CC} -fno-gcse -mpowerpc64" ;;
|
||||||
s390x) CC="${CC} -fno-gcse" ;;
|
s390x) CC="${CC} -fno-gcse" ;;
|
||||||
ia64) CC="${CC} -fno-gcse" ;;
|
ia64) CC="${CC} -fno-gcse" ;;
|
||||||
axp|alpha)
|
axp|alpha)
|
||||||
CC="${CC}" ;;
|
CC="${CC}" ;;
|
||||||
esac
|
esac
|
||||||
noexec='-DLINUX_NOEXEC_HEAPCODES'
|
noexec='-DKERNELVOID32A_HEAPCODES'
|
||||||
nommap='-DNO_MULTIMAP_SHM -DNO_MULTIMAP_FILE -DNO_SINGLEMAP -DNO_TRIVIALMAP'
|
nommap='-DNO_MULTIMAP_SHM -DNO_MULTIMAP_FILE -DNO_SINGLEMAP -DNO_TRIVIALMAP'
|
||||||
safety='-DSAFETY=3 -O'
|
safety='-DSAFETY=3 -O'
|
||||||
MYCFLAGS="${MYCFLAGS} -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
MYCFLAGS="$(getconf LFS_CFLAGS)"
|
||||||
MYCFLAGS="${MYCFLAGS} -D_GNU_SOURCE -Wno-unused -Wno-uninitialized"
|
if grep -q _DEFAULT_SOURCE /usr/include/features.h
|
||||||
|
then
|
||||||
|
MYCFLAGS="${MYCFLAGS} -D_GNU_SOURCE -D_DEFAULT_SOURCE"
|
||||||
|
else
|
||||||
|
MYCFLAGS="${MYCFLAGS} -D_GNU_SOURCE"
|
||||||
|
fi
|
||||||
|
MYCFLAGS="${MYCFLAGS} -Wno-unused -Wno-uninitialized"
|
||||||
port=''
|
port=''
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
i[0-9]86)
|
i[0-9]86)
|
||||||
MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
MYCFLAGS="${MYCFLAGS}" ;;
|
||||||
armv4l) MYCFLAGS="${MYCFLAGS} ${noexec}"
|
|
||||||
port=--enable-portability ;;
|
|
||||||
armv7l) MYCFLAGS="${MYCFLAGS} ${noexec}"
|
|
||||||
port=--enable-portability ;;
|
|
||||||
arm*) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
arm*) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||||
aarch64)MYCFLAGS="${MYCFLAGS} ${noexec}"
|
aarch64)MYCFLAGS="${MYCFLAGS}"
|
||||||
port=--enable-portability ;;
|
port=--enable-portability ;;
|
||||||
ppc) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
ppc) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||||
s390) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
s390) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||||
x86_64) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
x86_64) MYCFLAGS="${MYCFLAGS}" ;;
|
||||||
sparc*) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
sparc*) MYCFLAGS="${MYCFLAGS} ${nommap} ${safety}" ;;
|
||||||
ppc64) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
ppc64) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
||||||
port=--enable-portability ;;
|
port=--enable-portability ;;
|
||||||
ppc64le)MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
ppc64le)MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
||||||
port=--enable-portability ;;
|
port=--enable-portability ;;
|
||||||
s390x) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
s390x) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
||||||
port=--enable-portability ;;
|
port=--enable-portability ;;
|
||||||
ia64) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
ia64) MYCFLAGS="${MYCFLAGS} ${nommap} ${safety}" ;;
|
||||||
axp|alpha)
|
axp|alpha)
|
||||||
MYCFLAGS="${MYCFLAGS} ${nommap}" ;;
|
MYCFLAGS="${MYCFLAGS} ${nommap}" ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user