kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d15c60670a023f42c36e270c8f3bdd3ee5c33a79
parent 06abae39676241f1d81b6c49198fded06330f573
Author: Joris Vink <joris@coders.se>
Date:   Wed, 20 Nov 2013 10:34:32 +0100

Fix building the modules under osx.

Diffstat:
modules/example/build.sh | 11+++++++++--
modules/skeleton/build.sh | 11+++++++++--
2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/modules/example/build.sh b/modules/example/build.sh @@ -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}..." diff --git a/modules/skeleton/build.sh b/modules/skeleton/build.sh @@ -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}..."