diff --git a/freebsd/resources/switch/source-release.sh b/freebsd/resources/switch/source-release.sh index 38bfbf4..f2b1efc 100755 --- a/freebsd/resources/switch/source-release.sh +++ b/freebsd/resources/switch/source-release.sh @@ -14,7 +14,7 @@ echo "Installing the FreeSWITCH source" #install minimum dependencies pkg install --yes autoconf automake curl git gmake ldns libedit libtool openssl pcre pkgconf speex sqlite3 -pkg install --yes wget sudo libsndfile lua52 opus libmemcached libvorbis libogg tiff memcached +pkg install --yes gcc49 wget sudo libsndfile lua52 opus libmemcached libvorbis libogg tiff memcached #additional dependencies #pkg install --yes libshout mpg123 lame @@ -37,7 +37,11 @@ sed -i' ' -e s:'#applications/mod_curl:applications/mod_curl:' /usr/src/freeswit #sed -i' ' -e s:'#formats/mod_shout:formats/mod_shout:' /usr/src/freeswitch/modules.conf #disable mod_fsv -sed -i '' -e s:'applications/mod_fsv:#applications/mod_fsv:' /usr/src/freeswitch/modules.conf +#sed -i '' -e s:'applications/mod_fsv:#applications/mod_fsv:' /usr/src/freeswitch/modules.conf + +#set the variables +export CC=gcc49 +export CFLAGS="-Wno-error -std=gnu99 -Wno-c11-extensions -Wno-deprecated-declarations -Wno-zero-length-array -Wno-incompatible-pointer-types" #configure the source (additional option --enable-system-lua) /usr/src/freeswitch/./configure --prefix=/usr/local/freeswitch --enable-core-pgsql-support --disable-fhs