a730dfbf59
Some clue from espie@ Needed to work on an Ekiga update. There are still some rought edges but they'll be worked in-tree. This and the upcoming VoIP ports commits wouldn't have been possible without Miod's soft couch ;-)
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
$OpenBSD: patch-make_lib_mak,v 1.4 2011/10/26 16:59:09 ajacoutot Exp $
|
|
--- make/lib.mak.orig Fri Oct 14 08:54:53 2011
|
|
+++ make/lib.mak Wed Oct 26 10:49:21 2011
|
|
@@ -28,6 +28,13 @@
|
|
# $Date: 2011/10/26 16:59:09 $
|
|
#
|
|
|
|
+ifeq ($(OSTYPE),OpenBSD)
|
|
+ ifeq ($(BUILD_TYPE),.)
|
|
+ LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION)
|
|
+ else
|
|
+ LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION)-$(BUILD_TYPE)
|
|
+ endif
|
|
+else
|
|
ifeq (,$(findstring $(OSTYPE),Darwin cygwin mingw))
|
|
ifeq ($(BUILD_TYPE),.)
|
|
LIBNAME_PAT = $(LIB_FILENAME).$(MAJOR_VERSION).$(MINOR_VERSION).$(BUILD_NUMBER)
|
|
@@ -41,6 +48,7 @@ else
|
|
LIBNAME_PAT = $(subst .$(LIB_SUFFIX),.$(MAJOR_VERSION).$(MINOR_VERSION)-$(BUILD_TYPE)$(BUILD_NUMBER).$(LIB_SUFFIX),$(LIB_FILENAME))
|
|
endif
|
|
endif
|
|
+endif
|
|
|
|
LIB_SONAME = $(LIBNAME_PAT)
|
|
|
|
@@ -101,6 +109,10 @@ ifeq ($(P_SHAREDLIB),1)
|
|
LDSOOPTS += -Wl,-soname,$(LIB_SONAME)
|
|
endif
|
|
endif
|
|
+ endif
|
|
+
|
|
+ ifeq ($(OSTYPE),OpenBSD)
|
|
+ LDSOOPTS += -fPIC
|
|
endif
|
|
|
|
$(LIBDIR)/$(LIB_FILENAME): $(LIBDIR)/$(LIBNAME_PAT)
|