- build slarrfun.c with -O0, with default flags it generates broken

code on some arch (reported on amd64 with GCC 3.3 by Simon Nicolussi)

- autoconf picks up oniguruma if installed, add as a LIB_DEPENDS
This commit is contained in:
sthen 2009-10-23 09:23:11 +00:00
parent edd50e977a
commit e7827c67d0
3 changed files with 17 additions and 5 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.46 2009/10/13 21:46:20 sthen Exp $
# $OpenBSD: Makefile,v 1.47 2009/10/23 09:23:11 sthen Exp $
COMMENT= stack-based interpreter for terminal applications
DISTNAME= slang-2.2.1
PKGNAME= lib${DISTNAME}
PKGNAME= lib${DISTNAME}p0
SHARED_LIBS= slang 15.0
CATEGORIES= devel
@ -20,7 +20,8 @@ PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m termcap z
LIB_DEPENDS= pcre::devel/pcre
LIB_DEPENDS= pcre::devel/pcre \
onig::textproc/oniguruma
MODULES= converters/libiconv
AUTOCONF_VERSION= 2.61

View File

@ -1,5 +1,5 @@
--- src/Makefile.in.orig Mon Sep 7 02:10:49 2009
+++ src/Makefile.in Wed Sep 9 21:57:37 2009
+++ src/Makefile.in Fri Oct 23 10:07:06 2009
@@ -45,7 +45,7 @@ exec_prefix = @exec_prefix@
install_lib_dir = @libdir@
install_bin_dir = @bindir@
@ -9,3 +9,13 @@
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)

View File

@ -1,9 +1,10 @@
@comment $OpenBSD: PFRAG.shared,v 1.12 2009/10/13 21:46:20 sthen Exp $
@comment $OpenBSD: PFRAG.shared,v 1.13 2009/10/23 09:23:11 sthen Exp $
@comment lib/libslang.so
@lib lib/libslang.so.${LIBslang_VERSION}
lib/slang/v2/modules/fcntl-module.so
lib/slang/v2/modules/fork-module.so
lib/slang/v2/modules/iconv-module.so
lib/slang/v2/modules/onig-module.so
lib/slang/v2/modules/pcre-module.so
lib/slang/v2/modules/rand-module.so
lib/slang/v2/modules/select-module.so