$OpenBSD: patch-make_unix_mak,v 1.3 2012/06/21 14:23:51 ajacoutot Exp $
--- make/unix.mak.orig	Thu Apr 26 06:47:39 2012
+++ make/unix.mak	Thu Jun 21 11:22:09 2012
@@ -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
 
@@ -658,7 +666,9 @@ ifneq ($(OSTYPE),Darwin)
       STDCCFLAGS	+= -xO3
     endif
   else
-    STDCCFLAGS	+= -Os 
+    ifneq ($(OSTYPE),OpenBSD)
+      STDCCFLAGS	+= -Os
+    endif
   endif
 else
   STDCCFLAGS	+= -O2
