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
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
# Build and install to a local prefix under this repository. # Build and install to a local prefix under this repository.
export OSTYPE
# Flags: # Flags:
...@@ -64,10 +65,16 @@ cd native ...@@ -64,10 +65,16 @@ cd native
make make
cd "${DAEMON}" cd "${DAEMON}"
./autogen.sh ./autogen.sh
#keep shared Lib on MAC OSX
if [[ "$OSTYPE" != "darwin"* ]]; then
sharedLib="--disable-shared"
fi
if $global; then if $global; then
./configure --disable-shared $CONFIGURE_FLAGS ./configure $sharedLib $CONFIGURE_FLAGS
else else
./configure --disable-shared $CONFIGURE_FLAGS --prefix="${INSTALL}/daemon" ./configure $sharedLib $CONFIGURE_FLAGS --prefix="${INSTALL}/daemon"
fi fi
make -j${proc} make -j${proc}
make_install $global make_install $global
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment