~ chicken-core (chicken-5) 051e4105b5c59109c082b237f20f5caa854d20d5
commit 051e4105b5c59109c082b237f20f5caa854d20d5 Author: felix <felix@call-with-current-continuation.org> AuthorDate: Mon Oct 18 03:24:59 2010 -0400 Commit: felix <felix@call-with-current-continuation.org> CommitDate: Mon Oct 18 03:24:59 2010 -0400 don't use -fwrapv on OpenBSD (suggested and contributed by Christian Kellermann) diff --git a/Makefile.bsd b/Makefile.bsd index d1c23c6f..705afa69 100644 --- a/Makefile.bsd +++ b/Makefile.bsd @@ -34,10 +34,16 @@ SRCDIR = ./ # platform configuration ARCH ?= $(shell sh $(SRCDIR)/config-arch.sh) - +SYSTEM ?= $(shell uname -s) # options +# OpenBSD base still uses GCC 3.3.5 which does not support -fwrapv +ifeq ($(SYSTEM), OpenBSD) +C_COMPILER_OPTIONS ?= -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H +else C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H +endif + ifdef DEBUGBUILD C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused elseTrap