[asterisk-commits] mjordan: branch 11 r412468 - in /branches/11: channels/chan_oss.c main/Makefile
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 17 15:06:19 CDT 2014
Author: mjordan
Date: Thu Apr 17 15:06:11 2014
New Revision: 412468
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412468
Log:
main/Makefile: Fix build failure on SmartOS/Illumos/SunOS
This patch fixes two issues when building on SmartOS:
- channels/chan_oss.c: it makes sure soundcard.h is found
- main/Makefile: only use "-Wl,--version-script" when GNU LD is used as the Sun
Linker doesn't support that. Similar checks are already used elswhere in the
Makefile
Review: https://reviewboard.asterisk.org/r/3426
ASTERISK-23576 #close
Reported by: Sebastian Wiedenroth
patches:
fix-sunos.diff uploaded by Sebastian Wiedenroth (License 6597)
Modified:
branches/11/channels/chan_oss.c
branches/11/main/Makefile
Modified: branches/11/channels/chan_oss.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_oss.c?view=diff&rev=412468&r1=412467&r2=412468
==============================================================================
--- branches/11/channels/chan_oss.c (original)
+++ branches/11/channels/chan_oss.c Thu Apr 17 15:06:11 2014
@@ -48,7 +48,7 @@
#ifdef __linux
#include <linux/soundcard.h>
-#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__)
+#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
#include <sys/soundcard.h>
#else
#include <soundcard.h>
Modified: branches/11/main/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/Makefile?view=diff&rev=412468&r1=412467&r2=412468
==============================================================================
--- branches/11/main/Makefile (original)
+++ branches/11/main/Makefile Thu Apr 17 15:06:11 2014
@@ -202,7 +202,9 @@
$(ASTSSL_LIB).$(ASTSSL_SO_VERSION): _ASTLDFLAGS+=-Wl,-soname=$(ASTSSL_LIB).$(ASTSSL_SO_VERSION)
$(ASTSSL_LIB).$(ASTSSL_SO_VERSION): _ASTCFLAGS+=-fPIC -DAST_MODULE=\"asteriskssl\"
$(ASTSSL_LIB).$(ASTSSL_SO_VERSION): LIBS+=$(ASTSSL_LIBS)
-$(ASTSSL_LIB).$(ASTSSL_SO_VERSION): SO_SUPPRESS_SYMBOLS=-Wl,--version-script,libasteriskssl.exports,--warn-common
+ifeq ($(GNU_LD),1)
+ $(ASTSSL_LIB).$(ASTSSL_SO_VERSION): SO_SUPPRESS_SYMBOLS=-Wl,--version-script,libasteriskssl.exports,--warn-common
+endif
$(ASTSSL_LIB).$(ASTSSL_SO_VERSION): SOLINK=$(DYLINK)
# These rules are duplicated from $(ASTTOPDIR)/Makefile.rules because the library name
More information about the asterisk-commits
mailing list