diff --git a/Makefile.am b/Makefile.am index 905e2dac74..a021e908be 100644 --- a/Makefile.am +++ b/Makefile.am @@ -149,7 +149,7 @@ depends: ./build/buildlib.sh . install apr-util-1.2.6.tar.gz --with-apr=../apr-1.2.6 --prefix=$(PREFIX) ./build/buildlib.sh . libresample-0.1.3.tgz --prefix=$(PREFIX) ./build/buildlib.sh . install libteletone --prefix=$(PREFIX) - ./build/buildlib.sh . install srtp.tgz --prefix=$(PREFIX) --enable-pic + ./build/buildlib.sh . install srtp.tgz --prefix=$(PREFIX) rm build/freeswitch.env diff --git a/Makefile.in b/Makefile.in index a049873c5e..af975dba8e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1032,7 +1032,7 @@ depends: ./build/buildlib.sh . install apr-util-1.2.6.tar.gz --with-apr=../apr-1.2.6 --prefix=$(PREFIX) ./build/buildlib.sh . libresample-0.1.3.tgz --prefix=$(PREFIX) ./build/buildlib.sh . install libteletone --prefix=$(PREFIX) - ./build/buildlib.sh . install srtp.tgz --prefix=$(PREFIX) --enable-pic + ./build/buildlib.sh . install srtp.tgz --prefix=$(PREFIX) rm build/freeswitch.env modules: $(NAME) diff --git a/libs/srtp.build.sh b/libs/srtp.build.sh new file mode 100755 index 0000000000..be7c7dfbbf --- /dev/null +++ b/libs/srtp.build.sh @@ -0,0 +1,17 @@ +arch=`uname -m` + +opts="" +if [ $arch = "x86_64" ] ; then +opts="--enable-pic" +fi + +./configure $@ $opts + +make clean uninstall all +make install + + + + + +