]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add OPENSSL_INCLUDE to the CFLAGS for ssl.c and tcptls.c.
authorDavid M. Lee <dlee@digium.com>
Sat, 8 Sep 2012 03:54:28 +0000 (03:54 +0000)
committerDavid M. Lee <dlee@digium.com>
Sat, 8 Sep 2012 03:54:28 +0000 (03:54 +0000)
Without this flag, those files will compile with the system installed
OpenSSL headers (if they exist). This is a real bummer if a different
path was specified using --with-ssl=

(closes issue ASTERISK-20392)

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

main/Makefile

index 72465e56df632a2b4cfb4114ce31c4400ebf9828..e877c7d9e788bb4d59f6e55e19a2f1d0fccc3b59 100644 (file)
@@ -175,6 +175,10 @@ endif
 
 $(OBJS): _ASTCFLAGS+=-DAST_MODULE=\"core\"
 
+ssl.o: _ASTCFLAGS+=$(OPENSSL_INCLUDE)
+
+tcptls.o: _ASTCFLAGS+=$(OPENSSL_INCLUDE)
+
 $(MAIN_TGT): $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS)
        @$(CC) -c -o buildinfo.o $(_ASTCFLAGS) buildinfo.c $(ASTCFLAGS)
        $(ECHO_PREFIX) echo "   [LD] $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS) -> $@"