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)
commitf86985ad705e82d3ba366b85840fb079caac2540
treefc21b6d151e40de14007f2f1bb8cdf69f9d36d53
parent9e1fc6ab68f830fd12f3f5d8d643e035516f240c
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: http://svn.asterisk.org/svn/asterisk/trunk@412484 f38db490-d61c-443f-a65b-d21fe96a405b
channels/chan_oss.c
main/Makefile