openbsd-ports/devel/ptlib/patches/patch-make_unix_mak
ajacoutot 6fcade56c3 Don't patch out -Wl,-soname...
Ptlib and friends use their own build system and getting rid of the
libfoo.so -> libfoo.so.X.Y symlink would be a nightmare to maintain.
So soname is mandatory.
2019-01-06 10:36:38 +00:00

31 lines
975 B
Plaintext

$OpenBSD: patch-make_unix_mak,v 1.8 2019/01/06 10:36:38 ajacoutot Exp $
Make sure _SONAME is versioned (.so.X.Y versus .so).
Index: make/unix.mak
--- make/unix.mak.orig
+++ make/unix.mak
@@ -192,7 +192,9 @@ ifeq ($(target_cpu),x86)
#PTLIB_CFLAGS += -m486
endif
-LDLIBS += -lossaudio
+ifeq (,$(findstring $(MACHTYPE),amd64 sparc64))
+STDCCFLAGS += -DP_64BIT
+endif
P_USE_RANLIB := 1
#PTLIB_CFLAGS += -DP_USE_PRAGMA # migrated to configure
@@ -569,6 +571,11 @@ ifeq (,$(findstring $(target_os),Darwin cygwin mingw))
else
PTLIB_SONAME = $(subst .$(LIB_SUFFIX),.$(MAJOR_VERSION).$(MINOR_VERSION)$(BUILD_TYPE)$(BUILD_NUMBER).$(LIB_SUFFIX),$(PTLIB_FILE))
PTLIB_DEBUG_SONAME = $(subst .$(LIB_SUFFIX),.$(MAJOR_VERSION).$(MINOR_VERSION)$(BUILD_TYPE)$(BUILD_NUMBER).$(LIB_SUFFIX),$(PTLIB_DEBUG_FILE))
+endif
+
+ifeq ($(target_os),OpenBSD)
+ PTLIB_SONAME = $(PTLIB_FILE).${LIBpt_VERSION}
+ PTLIB_DEBUG_SONAME = $(PTLIB_DEBUG_FILE).${LIBpt_VERSION}
endif