Fix some build issues on Solaris.
authorJason Parker <jparker@digium.com>
Tue, 3 Nov 2009 19:59:46 +0000 (19:59 +0000)
committerJason Parker <jparker@digium.com>
Tue, 3 Nov 2009 19:59:46 +0000 (19:59 +0000)
(closes issue #14517)
(SWP-109)
Reported by: asgaroth
Patches:
      bug_14517.diff uploaded by snuffy (license 35)
Tested by: asgaroth, snuffy, dougm, qwell

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227372 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
main/Makefile

index 784e9a7..fb7e0eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -276,7 +276,7 @@ ifeq ($(OSARCH),OpenBSD)
 endif
 
 ifeq ($(OSARCH),SunOS)
-  _ASTCFLAGS+=-Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -D_XPG4_2
+  _ASTCFLAGS+=-Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -D_XPG4_2 -D__EXTENSIONS__
 endif
 
 ASTERISKVERSION:=$(shell GREP=$(GREP) AWK=$(AWK) build_tools/make_version .)
index 46f2301..d1bde94 100644 (file)
@@ -77,7 +77,7 @@ ifeq ($(OSARCH),OpenBSD)
 endif
 
 ifeq ($(OSARCH),SunOS)
-  AST_LIBS+=-lpthread -ldl -lnsl -lsocket -lresolv -L/opt/ssl/lib -L/usr/local/ssl/lib
+  AST_LIBS+=-lpthread -ldl -lrt -lnsl -lsocket -lresolv -L/opt/ssl/lib -L/usr/local/ssl/lib
   ASTLINK=
 endif