.
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
|
||||
CC="gcc"
|
||||
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
|
||||
i[0-9]86)
|
||||
CC="${CC} -falign-functions=4 -mieee-fp -ffloat-store" ;;
|
||||
CC="${CC} -mieee-fp -ffloat-store" ;;
|
||||
arm*) CC="${CC}" ;;
|
||||
aarch64)CC="${CC}" ;;
|
||||
ppc) CC="${CC}" ;;
|
||||
s390) CC="${CC}" ;;
|
||||
x86_64) CC="${CC} -fno-gcse" ;;
|
||||
sparc*) CC="${CC} -fno-gcse" ;;
|
||||
sparc*) CC="${CC} -mcpu=v9 -fno-gcse" ;;
|
||||
ppc64) CC="${CC} -fno-gcse -mpowerpc64" ;;
|
||||
s390x) CC="${CC} -fno-gcse" ;;
|
||||
ia64) CC="${CC} -fno-gcse" ;;
|
||||
axp|alpha)
|
||||
CC="${CC}" ;;
|
||||
esac
|
||||
noexec='-DLINUX_NOEXEC_HEAPCODES'
|
||||
noexec='-DKERNELVOID32A_HEAPCODES'
|
||||
nommap='-DNO_MULTIMAP_SHM -DNO_MULTIMAP_FILE -DNO_SINGLEMAP -DNO_TRIVIALMAP'
|
||||
safety='-DSAFETY=3 -O'
|
||||
MYCFLAGS="${MYCFLAGS} -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
MYCFLAGS="${MYCFLAGS} -D_GNU_SOURCE -Wno-unused -Wno-uninitialized"
|
||||
MYCFLAGS="$(getconf LFS_CFLAGS)"
|
||||
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=''
|
||||
case "$(uname -m)" in
|
||||
i[0-9]86)
|
||||
MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||
armv4l) MYCFLAGS="${MYCFLAGS} ${noexec}"
|
||||
port=--enable-portability ;;
|
||||
armv7l) MYCFLAGS="${MYCFLAGS} ${noexec}"
|
||||
port=--enable-portability ;;
|
||||
MYCFLAGS="${MYCFLAGS}" ;;
|
||||
arm*) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||
aarch64)MYCFLAGS="${MYCFLAGS} ${noexec}"
|
||||
aarch64)MYCFLAGS="${MYCFLAGS}"
|
||||
port=--enable-portability ;;
|
||||
ppc) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||
s390) MYCFLAGS="${MYCFLAGS} ${noexec}" ;;
|
||||
x86_64) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
||||
sparc*) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
||||
x86_64) MYCFLAGS="${MYCFLAGS}" ;;
|
||||
sparc*) MYCFLAGS="${MYCFLAGS} ${nommap} ${safety}" ;;
|
||||
ppc64) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
||||
port=--enable-portability ;;
|
||||
ppc64le)MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
||||
port=--enable-portability ;;
|
||||
s390x) MYCFLAGS="${MYCFLAGS} ${safety} -DWIDE_HARD"
|
||||
port=--enable-portability ;;
|
||||
ia64) MYCFLAGS="${MYCFLAGS} ${safety}" ;;
|
||||
ia64) MYCFLAGS="${MYCFLAGS} ${nommap} ${safety}" ;;
|
||||
axp|alpha)
|
||||
MYCFLAGS="${MYCFLAGS} ${nommap}" ;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user