[asterisk-commits] dlee: branch 11 r372930 - /branches/11/main/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 12 09:18:13 CDT 2012


Author: dlee
Date: Wed Sep 12 09:18:07 2012
New Revision: 372930

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=372930
Log:
Fixed r372696 when configured --disable-asteriskssl; properly install libasteriskssl.dylib on OS X.

I didn't realize that libasteriskssl.c was still compiled, even when you
disable asteriskssl; it simple gets statically linked into asterisk.

Modified:
    branches/11/main/Makefile

Modified: branches/11/main/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/Makefile?view=diff&rev=372930&r1=372929&r2=372930
==============================================================================
--- branches/11/main/Makefile (original)
+++ branches/11/main/Makefile Wed Sep 12 09:18:07 2012
@@ -187,14 +187,14 @@
 
 $(OBJS): _ASTCFLAGS+=-DAST_MODULE=\"core\"
 
+libasteriskssl.o: _ASTCFLAGS+=$(OPENSSL_INCLUDE)
+
 ifeq ($(AST_ASTERISKSSL),yes)
 # The ABI *version* of the asteriskssl library; don't change this unless there truly is a
 # non-backwards-compatible ABI change in the library
 ASTSSL_SO_VERSION=1
 
 ASTSSL_LDLIBS=-L. -lasteriskssl
-
-libasteriskssl.o: _ASTCFLAGS+=$(OPENSSL_INCLUDE)
 
 ifeq ($(findstring darwin,$(OSARCH)),) # not Darwin
 ASTSSL_LIB:=libasteriskssl.so
@@ -257,8 +257,12 @@
 bininstall:
 	$(INSTALL) -m 755 $(MAIN_TGT) "$(DESTDIR)$(ASTSBINDIR)/"
 ifeq ($(AST_ASTERISKSSL),yes)
+ifeq ($(findstring darwin,$(OSARCH)),) # not Darwin
 	$(INSTALL) -m 755 $(ASTSSL_LIB).$(ASTSSL_SO_VERSION) "$(DESTDIR)$(ASTLIBDIR)/"
 	$(LN) -sf "$(DESTDIR)$(ASTLIBDIR)/$(ASTSSL_LIB).$(ASTSSL_SO_VERSION)" "$(DESTDIR)$(ASTLIBDIR)/$(ASTSSL_LIB)"
+else # Darwin
+	$(INSTALL) -m 755 $(ASTSSL_LIB) "$(DESTDIR)$(ASTLIBDIR)/"
+endif
 ifneq ($(LDCONFIG),)
 	$(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
 endif




More information about the asterisk-commits mailing list