mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Merge "build: Various OpenBSD issues" into 13
This commit is contained in:
@@ -279,15 +279,15 @@ ASTPJ_LIB:=libasteriskpj.so
|
||||
libasteriskpj.exports: $(ASTTOPDIR)/$(PJPROJECT_DIR)/pjproject.symbols
|
||||
$(ECHO_PREFIX) echo " [GENERATE] libasteriskpj.exports"
|
||||
ifeq ($(GNU_LD),1)
|
||||
$(CMD_PREFIX) echo -e "{\n\tglobal:" > libasteriskpj.exports
|
||||
$(CMD_PREFIX) sed -r -e "s/.*/\t\t$(LINKER_SYMBOL_PREFIX)&;/" $(ASTTOPDIR)/$(PJPROJECT_DIR)/pjproject.symbols >> libasteriskpj.exports
|
||||
$(CMD_PREFIX) echo -e "\t\t$(LINKER_SYMBOL_PREFIX)ast_pj_init;\n" >> libasteriskpj.exports
|
||||
$(CMD_PREFIX) echo -e "\tlocal:\n\t\t*;\n};" >> libasteriskpj.exports
|
||||
$(CMD_PREFIX) echo -e "{\nglobal:" > libasteriskpj.exports
|
||||
$(CMD_PREFIX) sed -r -e "s/.*/$(LINKER_SYMBOL_PREFIX)&;/" $(ASTTOPDIR)/$(PJPROJECT_DIR)/pjproject.symbols >> libasteriskpj.exports
|
||||
$(CMD_PREFIX) echo -e "$(LINKER_SYMBOL_PREFIX)ast_pj_init;\n" >> libasteriskpj.exports
|
||||
$(CMD_PREFIX) echo -e "local:\n*;\n};" >> libasteriskpj.exports
|
||||
endif
|
||||
|
||||
$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): _ASTLDFLAGS+=-Wl,-soname=$(ASTPJ_LIB) $(PJ_LDFLAGS)
|
||||
$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): _ASTCFLAGS+=-fPIC -DAST_MODULE=\"asteriskpj\" $(PJ_CFLAGS)
|
||||
$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): LIBS+=$(PJPROJECT_LDLIBS) -lssl -lcrypto -luuid -lm -lrt -lpthread
|
||||
$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): LIBS+=$(PJPROJECT_LDLIBS) -lssl -lcrypto -luuid -lm -lpthread
|
||||
ifeq ($(GNU_LD),1)
|
||||
$(ASTPJ_LIB).$(ASTPJ_SO_VERSION): SO_SUPPRESS_SYMBOLS=-Wl,--version-script,libasteriskpj.exports,--warn-common
|
||||
endif
|
||||
|
@@ -1367,7 +1367,7 @@ static int ast_rtp_dtls_set_configuration(struct ast_rtp_instance *instance, con
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10002000L
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
rtp->ssl_ctx = SSL_CTX_new(DTLSv1_method());
|
||||
#else
|
||||
rtp->ssl_ctx = SSL_CTX_new(DTLS_method());
|
||||
|
6
third-party/pjproject/Makefile
vendored
6
third-party/pjproject/Makefile
vendored
@@ -193,9 +193,9 @@ clean:
|
||||
$(ECHO_PREFIX) Cleaning
|
||||
+-$(CMD_PREFIX) test -d source && ($(SUBMAKE) -C source clean || : ;\
|
||||
rm -rf source/pjsip-apps/bin/* || : ;\
|
||||
find source -name *.a -delete ;\
|
||||
find source -name *.o -delete ;\
|
||||
find source -name *.so -delete ; ) || :
|
||||
find source -name *.a | xargs rm -rf ;\
|
||||
find source -name *.o | xargs rm -rf ;\
|
||||
find source -name *.so | xargs rm -rf ; ) || :
|
||||
-$(CMD_PREFIX) rm -rf pjproject.symbols
|
||||
|
||||
distclean:
|
||||
|
Reference in New Issue
Block a user