From 357f4a9a86e60953121cd5a7f3f85505b195ad5b Mon Sep 17 00:00:00 2001 From: Michiel van Baak Date: Sat, 18 Oct 2008 10:27:22 +0000 Subject: Make sure we support nested functions and generation of trampolines under OpenBSD. (closes issue #13724) Reported by: mvanbaak git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150971 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 96cb55c06..7b017f22f 100644 --- a/Makefile +++ b/Makefile @@ -262,7 +262,7 @@ ifeq ($(OSARCH),NetBSD) endif ifeq ($(OSARCH),OpenBSD) - ASTCFLAGS+=-pthread + ASTCFLAGS+=-pthread -ftrampolines endif ifeq ($(OSARCH),SunOS) @@ -310,6 +310,10 @@ ifeq ($(OSARCH),SunOS) SOLINK=-shared -fpic -L/usr/local/ssl/lib -lrt endif +ifeq ($(OSARCH),OpenBSD) + SOLINK=-shared -fpic +endif + # comment to print directories during submakes #PRINT_DIR=yes -- cgit v1.2.3