$OpenBSD: patch-make_unix_mak,v 1.4 2012/08/25 13:15:24 ajacoutot Exp $
--- make/unix.mak.orig	Thu Aug 23 04:12:44 2012
+++ make/unix.mak	Fri Aug 24 07:59:24 2012
@@ -235,11 +235,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
 
@@ -693,7 +701,9 @@ ifneq ($(OSTYPE),Darwin)
       STDCCFLAGS	+= -xO3
     endif
   else
-    STDCCFLAGS	+= -Os 
+    ifneq ($(OSTYPE),OpenBSD)
+      STDCCFLAGS	+= -Os
+    endif
   endif
 else
   STDCCFLAGS	+= -O2
