main/Makefile: Fix build failure on SmartOS/Illumos/SunOS
authorMatthew Jordan <mjordan@digium.com>
Thu, 17 Apr 2014 20:25:16 +0000 (20:25 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 17 Apr 2014 20:25:16 +0000 (20:25 +0000)
commitc3497aa2bbfcf2e78d479a9d586b0320ba2b7cb0
tree650d9d2a6f1798e18090f4987a081c6d750ad92f
parent7d26eefce43bf5f0d51c97377dcc96820a909d5e
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)
........

Merged revisions 412468 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 412483 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_oss.c
main/Makefile