1
0
mirror of https://git.kore.io/kore.git synced 2024-11-05 18:11:44 +01:00

Fix building the modules under osx.

This commit is contained in:
Joris Vink 2013-11-20 10:34:32 +01:00
parent 06abae3967
commit d15c60670a
2 changed files with 18 additions and 4 deletions

View File

@ -24,8 +24,15 @@ CC=gcc
CFLAGS="-I. -I${KORE_DIR}/includes -Wall -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wshadow \
-Wpointer-arith -Wcast-qual -Wsign-compare -g"
LDFLAGS=-shared
MODULE_BUILD_DATE=`date +"%Y-%m-%d %H:%M:%S"`
OSNAME=$(uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
if [ "${OSNAME}" = "darwin" ]; then
LDFLAGS="-dynamiclib -undefined suppress -flat_namespace"
else
LDFLAGS="-shared"
fi
MODULE_BUILD_DATE=$(date +"%Y-%m-%d %H:%M:%S")
### Begin building ####
echo "Building module ${MODULE}..."

View File

@ -28,8 +28,15 @@ CC=gcc
CFLAGS="-I. -I${KORE_DIR}/includes -Wall -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wshadow \
-Wpointer-arith -Wcast-qual -Wsign-compare -g"
LDFLAGS=-shared
MODULE_BUILD_DATE=`date +"%Y-%m-%d %H:%M:%S"`
OSNAME=$(uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
if [ "${OSNAME}" = "darwin" ]; then
LDFLAGS="-dynamiclib -undefined suppress -flat_namespace"
else
LDFLAGS="-shared"
fi
MODULE_BUILD_DATE=$(date +"%Y-%m-%d %H:%M:%S")
### Begin building ####
echo "Building module ${MODULE}..."