main/Makefile: Fix build failure on SmartOS/Illumos/SunOS
authorMatthew Jordan <mjordan@digium.com>
Thu, 17 Apr 2014 20:24:41 +0000 (20:24 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 17 Apr 2014 20:24:41 +0000 (20:24 +0000)
commite4d2ce18350160f35f0d1884bd3e97d9d7a9bd2a
tree3b2dd53a64a16cce9e56f74541c3b6f30e3fd22b
parentdee5c80cb89145f94d8c025cd2402728311f14aa
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

git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@412483 f38db490-d61c-443f-a65b-d21fe96a405b
channels/chan_oss.c
main/Makefile