Ticket #412: openbsd-3.3.5.diff

File openbsd-3.3.5.diff, 594 bytes (added by Christian Kellermann, 14 years ago)

diff to disable flag when building on openbsd

  • Makefile.bsd

    diff --git a/Makefile.bsd b/Makefile.bsd
    index d1c23c6..705afa6 100644
    a b SRCDIR = ./ 
    3434# platform configuration
    3535
    3636ARCH ?= $(shell sh $(SRCDIR)/config-arch.sh)
    37 
     37SYSTEM ?= $(shell uname -s)
    3838# options
    3939
     40# OpenBSD base still uses GCC 3.3.5 which does not support -fwrapv
     41ifeq ($(SYSTEM), OpenBSD)
     42C_COMPILER_OPTIONS ?= -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H
     43else
    4044C_COMPILER_OPTIONS ?= -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
     45endif
     46
    4147ifdef DEBUGBUILD
    4248C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
    4349else