In the OSX build script, link with system libs.

Previously, mosh was linking with macports-provided libs in
/opt/local/lib, which was not portable to users without macports

Closes #411
This commit is contained in:
Andrew Chin
2013-03-30 23:26:52 -04:00
committed by Keith Winstein
parent 8ff636d54e
commit fbd2d184fb
+4 -2
View File
@@ -27,14 +27,16 @@ fi
echo "Building for x86_64..." echo "Building for x86_64..."
./configure --prefix="$PREFIX_x86_64" ac_cv_poll_pty=no \ ./configure --prefix="$PREFIX_x86_64" ac_cv_poll_pty=no \
CC="clang -arch x86_64" CPP="clang -arch x86_64 -E" CXX="clang++ -arch x86_64" \ CC="clang -arch x86_64" CPP="clang -arch x86_64 -E" CXX="clang++ -arch x86_64" \
TINFO_LIBS=-lncurses protobuf_LIBS=/opt/local/lib/libprotobuf.a TINFO_LIBS=-lncurses protobuf_LIBS=/opt/local/lib/libprotobuf.a \
OPENSSL_CFLAGS=" " OPENSSL_LIBS="-lssl -lcrypto -lz"
make clean make clean
make install -j8 make install -j8
echo "Building for i386..." echo "Building for i386..."
./configure --prefix="$PREFIX_i386" ac_cv_poll_pty=no \ ./configure --prefix="$PREFIX_i386" ac_cv_poll_pty=no \
CC="clang -arch i386" CPP="clang -arch i386 -E" CXX="clang++ -arch i386" \ CC="clang -arch i386" CPP="clang -arch i386 -E" CXX="clang++ -arch i386" \
TINFO_LIBS=-lncurses protobuf_LIBS=/opt/local/lib/libprotobuf.a TINFO_LIBS=-lncurses protobuf_LIBS=/opt/local/lib/libprotobuf.a \
OPENSSL_CFLAGS=" " OPENSSL_LIBS="-lssl -lcrypto -lz"
make clean make clean
make install -j8 make install -j8