Commit 0d1a2e09 authored by Loïc Siret's avatar Loïc Siret Committed by gerrit2

compilation: force sharedLib for OSX

OSX need Shared Library to compile the daemon. This patch ensure
that we didn't disable them on compilation.

Change-Id: Iedc37da7980599f2011e9501df0e4b087a0d7d0f
parent b1a7daf8
#!/usr/bin/env bash
# Build and install to a local prefix under this repository.
export OSTYPE
# Flags:
......@@ -64,10 +65,16 @@ cd native
make
cd "${DAEMON}"
./autogen.sh
#keep shared Lib on MAC OSX
if [[ "$OSTYPE" != "darwin"* ]]; then
sharedLib="--disable-shared"
fi
if $global; then
./configure --disable-shared $CONFIGURE_FLAGS
./configure $sharedLib $CONFIGURE_FLAGS
else
./configure --disable-shared $CONFIGURE_FLAGS --prefix="${INSTALL}/daemon"
./configure $sharedLib $CONFIGURE_FLAGS --prefix="${INSTALL}/daemon"
fi
make -j${proc}
make_install $global
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment