steven@ points out the -O0 which is needed on amd64 with gcc 3.3 for
slarrfun.c can be passed via the environment rather than in a patch; do this and only apply it to amd64.
This commit is contained in:
parent
8d397e1036
commit
3bfccf6ba8
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.47 2009/10/23 09:23:11 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.48 2009/10/25 11:48:09 sthen Exp $
|
||||
|
||||
COMMENT= stack-based interpreter for terminal applications
|
||||
|
||||
DISTNAME= slang-2.2.1
|
||||
PKGNAME= lib${DISTNAME}p0
|
||||
PKGNAME= lib${DISTNAME}p1
|
||||
SHARED_LIBS= slang 15.0
|
||||
|
||||
CATEGORIES= devel
|
||||
@ -35,6 +35,11 @@ REGRESS_FLAGS= TCAPLIB="-ltermlib"
|
||||
MAKE_ENV= LIBslang_MAJOR=${LIBslang_VERSION:R} \
|
||||
LIBslang_MINOR=${LIBslang_VERSION:E}
|
||||
|
||||
# GCC 3.3 optimizer problems: http://marc.info/?m=125562659714004
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
MAKE_ENV+= slarrfun_C_FLAGS=-O0
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
cd ${AUTOCONF_DIR}; cp configure ..
|
||||
|
||||
|
@ -9,13 +9,3 @@
|
||||
DOC_FILES = ../changes.txt ../COPY* ../doc/slangdoc.html ../doc/text/*.txt
|
||||
MODULE_INSTALL_DIR = @libdir@/slang/v@slang_major_version@/modules
|
||||
#---------------------------------------------------------------------------
|
||||
@@ -90,6 +90,9 @@ ALL_ELF_CFLAGS = $(ELF_CFLAGS) -Dunix $(THIS_LIB_DEFI
|
||||
COMPILE_CMD = $(CC) -c $(ALL_CFLAGS)
|
||||
ELFCOMPILE_CMD = $(ELF_CC) -c $(ALL_ELF_CFLAGS)
|
||||
ELF_LINK_CMD = $(ELF_LINK)
|
||||
+
|
||||
+# GCC 3.3 optimizer problems: http://marc.info/?m=125562659714004
|
||||
+slarrfun_C_FLAGS = -O0
|
||||
|
||||
NORMAL_LIB = lib$(THIS_LIB).a
|
||||
OBJDIR_NORMAL_LIB = $(OBJDIR)/$(NORMAL_LIB)
|
||||
|
Loading…
Reference in New Issue
Block a user