Skip to content
Snippets Groups Projects
Commit 0d1a2e09 authored by Loïc Siret's avatar Loïc Siret Committed by gerrit2
Browse files

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
Branches
Tags
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment