PIE preparations: Do not use gmalloc, except on powerpc, which breaks with

libc malloc and as a result must use -fno-pie for now.

Various diffs tested by joshe@ and landry@ on sparc64/powerpc;
ok joshe@ (maintainer)
This commit is contained in:
pascal 2012-08-20 09:23:15 +00:00
parent 14edc88443
commit ffeba43ac8

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.38 2012/03/29 13:38:40 sthen Exp $
# $OpenBSD: Makefile,v 1.39 2012/08/20 09:23:15 pascal Exp $
ONLY_FOR_ARCHS = amd64 i386 powerpc sparc64
COMMENT = ANSI Common Lisp implementation
DISTNAME= clisp-2.48
REVISION = 2
REVISION = 3
CATEGORIES= lang
HOMEPAGE= http://clisp.cons.org/
MAINTAINER = Joshua Elsasser <joshe@openbsd.org>
@ -33,7 +33,6 @@ SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu old
CONFIGURE_ARGS= --fsstnd=openbsd \
--with-gmalloc \
--disable-mmap \
--with-gettext \
--mandir=${PREFIX}/man \
@ -47,4 +46,12 @@ CONFIGURE_ENV = ac_cv_prog_DVIPDF=''
CFLAGS += -DSAFETY=2 -DNO_ASM -mcmodel=medany
.endif
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ARGS += --with-gmalloc
CFLAGS += -fno-pie
LDFLAGS += -fno-pie
.else
CONFIGURE_ARGS += --without-gmalloc
.endif
.include <bsd.port.mk>