summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichiel van Baak <michiel@vanbaak.info>2008-10-18 10:27:22 +0000
committerMichiel van Baak <michiel@vanbaak.info>2008-10-18 10:27:22 +0000
commit357f4a9a86e60953121cd5a7f3f85505b195ad5b (patch)
tree383b5aa46168befe8be812b3fe6604ce68cf9f25 /Makefile
parentb0d56687c6af3184f1d3b1fa8ff6b6fbe4c58758 (diff)
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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