$OpenBSD: patch-make_unix_mak,v 1.2 2011/10/26 16:59:09 ajacoutot Exp $ --- make/unix.mak.orig Fri Oct 14 08:54:53 2011 +++ make/unix.mak Wed Oct 26 08:58:01 2011 @@ -200,11 +200,19 @@ ifeq ($(MACHTYPE),x86) #STDCCFLAGS += -m486 endif -LDLIBS += -lossaudio +ifeq ($(MACHTYPE),amd64) +STDCCFLAGS += -DP_64BIT +endif +ifeq ($(MACHTYPE),sparc64) +STDCCFLAGS += -DP_64BIT +endif + P_USE_RANLIB := 1 #STDCCFLAGS += -DP_USE_PRAGMA # migrated to configure +STDCCFLAGS += -fPIC -DPIC +SYSLIBDIR := $(shell $(PTLIBDIR)/make/ptlib-config --libdir) endif # OpenBSD @@ -659,7 +667,9 @@ ifneq ($(OSTYPE),Darwin) STDCCFLAGS += -xO3 endif else - STDCCFLAGS += -Os + ifneq ($(OSTYPE),OpenBSD) + STDCCFLAGS += -Os + endif endif else STDCCFLAGS += -O2