Changeset View
Changeset View
Standalone View
Standalone View
net/asterisk18/files/patch-main_Makefile
--- main/Makefile.orig 2020-07-09 15:39:17 UTC | --- main/Makefile.orig 2022-08-18 15:18:29 UTC | ||||
+++ main/Makefile | +++ main/Makefile | ||||
@@ -80,9 +80,12 @@ endif | @@ -79,9 +79,8 @@ else | ||||
endif | |||||
ifeq ($(OSARCH),FreeBSD) | ifeq ($(OSARCH),FreeBSD) | ||||
# -V is understood by BSD Make, not by GNU make. | - # -V is understood by BSD Make, not by GNU make. | ||||
- BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk) | - BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk) | ||||
+ BSDVERSION=$(OSVERSION) | - AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) | ||||
+ BSDVERSION?=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk) | + AST_LIBS+=-pthread | ||||
AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi) | + CRYPT_LIB=-lcrypt | ||||
+ CRYPT_LIB=$(shell if test $(BSDVERSION) -ge 1200001 ; then echo "-lcrypt"; fi) | |||||
AST_LIBS+=-lcrypto | AST_LIBS+=-lcrypto | ||||
+ AST_LIBS+=%%LIBSYSINFO%% | |||||
endif | endif | ||||
ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) |