openbsd-ports/devel/ptlib/patches/patch-make_lib_mak
2010-03-27 14:32:23 +00:00

35 lines
1.1 KiB
Plaintext

$OpenBSD: patch-make_lib_mak,v 1.3 2010/03/27 14:32:23 ajacoutot Exp $
--- make/lib.mak.orig Mon Sep 21 02:25:30 2009
+++ make/lib.mak Sat Mar 27 15:21:24 2010
@@ -29,10 +29,14 @@
#
ifeq (,$(findstring $(OSTYPE),Darwin cygwin mingw))
- ifeq ($(BUILD_TYPE),.)
- LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION).$(BUILD_NUMBER)
+ ifeq ($(OSTYPE),OpenBSD)
+ LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION)
else
- LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION)-$(BUILD_TYPE)$(BUILD_NUMBER)
+ ifeq ($(BUILD_TYPE),.)
+ LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION).$(BUILD_NUMBER)
+ else
+ LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION)-$(BUILD_TYPE)$(BUILD_NUMBER)
+ endif
endif
else
ifeq ($(BUILD_TYPE),.)
@@ -98,7 +102,11 @@ ifeq ($(P_SHAREDLIB),1)
LDSOOPTS += -Wl,--kill-at
else
ifneq ($(OSTYPE),Darwin)
- LDSOOPTS += -Wl,-soname,$(LIB_SONAME)
+ ifneq ($(OSTYPE),OpenBSD)
+ LDSOOPTS += -Wl,-soname,$(LIB_SONAME)
+ else
+ LDSOOPTS += -fPIC
+ endif
endif
endif
endif