summaryrefslogtreecommitdiff
path: root/net/asterisk22/files/patch-main_Makefile
blob: 62f7a4504a4ee9d048d75a4d27706fcd7a8f25fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- main/Makefile.orig	2022-08-18 15:18:29 UTC
+++ main/Makefile
@@ -79,9 +79,8 @@ else
 endif
 
 ifeq ($(OSARCH),FreeBSD)
-  # -V is understood by BSD Make, not by GNU make.
-  BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
-  AST_LIBS+=$(shell if test $(BSDVERSION) -lt 502102 ; then echo "-lc_r"; else echo "-pthread"; fi)
+  AST_LIBS+=-pthread
+  CRYPT_LIB=-lcrypt
   AST_LIBS+=-lcrypto
 endif