remove -fforce-addr from OSX builds
@@ -4,6 +4,12 @@ export C_INCLUDE_PATH=${PREFIX}/include
export LDFLAGS="-L${PREFIX}/lib"
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
+# -fforce-addr is not supported in clang
+if [ `uname` == Darwin ]; then
+ sed -i.bak 's/-fforce-addr //g' ./configure
+ sed -i.bak 's/-fforce-addr //g' ./configure.ac
+fi
+
./configure --prefix=${PREFIX} --disable-examples --disable-spec
make
make check
