ports/devel/ptlib/patches/patch-make_unix_mak

35 lines
698 B
Text

Index: make/unix.mak
--- make/unix.mak.orig
+++ make/unix.mak
@@ -263,11 +263,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
@@ -721,7 +729,9 @@ ifneq ($(OSTYPE),Darwin)
STDCCFLAGS += -xO3
endif
else
- STDCCFLAGS += -Os
+ ifneq ($(OSTYPE),OpenBSD)
+ STDCCFLAGS += -Os
+ endif
endif
else
STDCCFLAGS += -O2