dfc6cfce70
* see http://www.kamailio.org/wiki/install/upgrade/3.2.x-to-3.3.0 for upgrade notes
78 lines
2.3 KiB
Plaintext
78 lines
2.3 KiB
Plaintext
$OpenBSD: patch-Makefile_libs,v 1.2 2012/09/15 12:16:18 sthen Exp $
|
|
--- Makefile.libs.orig Mon Jun 18 14:36:09 2012
|
|
+++ Makefile.libs Sun Jul 29 18:01:15 2012
|
|
@@ -57,14 +57,19 @@ ifeq ($(OS), darwin)
|
|
NAME_LD_FLAGS= -compatibility_version $(MAJOR_VER).$(MINOR_VER) \
|
|
-current_version $(MAJOR_VER).$(MINOR_VER).$(BUGFIX_VER) \
|
|
-install_name $(LIB_INSTALL_NAME)
|
|
-
|
|
else
|
|
+ifeq ($(OS), openbsd)
|
|
+ LIB_NAME:=$(LIB_PREFIX)$(NAME)$(LIB_SUFFIX).$(OBSD_VER)
|
|
+ NAME_LD_FLAGS= $(LIB_SONAME)$(LIB_RUNTIME_NAME)
|
|
+ LIBINAME_F:=
|
|
+else
|
|
LIB_NAME:=$(LIB_PREFIX)$(NAME)$(LIB_SUFFIX).$(MAJOR_VER).$(MINOR_VER)
|
|
LIB_RUNTIME_NAME:=$(LIB_PREFIX)$(NAME)$(LIB_SUFFIX).$(MAJOR_VER)
|
|
LIB_LINK_NAME:=$(LIB_PREFIX)$(NAME)$(LIB_SUFFIX)
|
|
NAME_LD_FLAGS= $(LIB_SONAME)$(LIB_RUNTIME_NAME)
|
|
LIBINAME_F:=
|
|
endif
|
|
+endif
|
|
|
|
ifeq ($(strip $(compile_for_install)),yes)
|
|
LIB_INSTALL_NAME:=$(lib_target)/$(LIB_RUNTIME_NAME)
|
|
@@ -111,14 +116,18 @@ endif
|
|
$(NAME): $(LIB_RUNTIME_NAME) $(LIB_LINK_NAME) $(LIBINAME_F)
|
|
|
|
$(LIB_RUNTIME_NAME):
|
|
+ifneq ($(OS), openbsd)
|
|
-@ln -s $(LIB_NAME) $(LIB_RUNTIME_NAME)
|
|
+endif
|
|
|
|
$(LIB_LINK_NAME):
|
|
ifeq ($(OS), freebsd)
|
|
-@ln -s $(LIB_RUNTIME_NAME) $(LIB_LINK_NAME)
|
|
else
|
|
+ifneq ($(OS), openbsd)
|
|
-@ln -s $(LIB_NAME) $(LIB_LINK_NAME)
|
|
endif
|
|
+endif
|
|
|
|
.PHONY: link_clean
|
|
link_clean:
|
|
@@ -144,21 +153,31 @@ ifeq ($(OS), freebsd)
|
|
rm -f $(lib_prefix)/$(lib_dir)/$(LIB_LINK_NAME)
|
|
cd $(lib_prefix)/$(lib_dir) ; ln -s $(LIB_RUNTIME_NAME) $(LIB_LINK_NAME)
|
|
else
|
|
+ifeq ($(OS), openbsd)
|
|
$(INSTALL_TOUCH) $(lib_prefix)/$(lib_dir)/$(LIB_NAME)
|
|
$(INSTALL_LIB) $(LIB_NAME) $(lib_prefix)/$(lib_dir)
|
|
+else
|
|
+ $(INSTALL_TOUCH) $(lib_prefix)/$(lib_dir)/$(LIB_NAME)
|
|
+ $(INSTALL_LIB) $(LIB_NAME) $(lib_prefix)/$(lib_dir)
|
|
rm -f $(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME) \
|
|
$(lib_prefix)/$(lib_dir)/$(LIB_LINK_NAME)
|
|
cd $(lib_prefix)/$(lib_dir) ; ln -s $(LIB_NAME) $(LIB_RUNTIME_NAME)
|
|
cd $(lib_prefix)/$(lib_dir) ; ln -s $(LIB_NAME) $(LIB_LINK_NAME)
|
|
endif
|
|
+endif
|
|
|
|
-
|
|
.PHONY:install-if-newer
|
|
+ifeq ($(OS), openbsd)
|
|
+install-if-newer: $(lib_prefix)/$(lib_dir)/$(LIB_NAME)
|
|
+
|
|
+$(lib_prefix)/$(lib_dir)/$(LIB_NAME): $(LIBINAME_F)
|
|
+ @$(MAKE) install
|
|
+else
|
|
install-if-newer: $(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME)
|
|
|
|
$(lib_prefix)/$(lib_dir)/$(LIB_RUNTIME_NAME): $(LIB_NAME) $(LIBINAME_F)
|
|
@$(MAKE) install
|
|
-
|
|
+endif
|
|
|
|
ifneq ($(strip $(LIBINAME_F)),)
|
|
$(LIBINAME_F): $(ALLDEP)
|