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 1d8fc9992074bdfe8b3505937f89d6de5eb63019
parent e0f30e1ae7f62f766645afda9dd7907856a00fa3
Author: Joris Vink <joris@coders.se>
Date:   Fri, 18 Jul 2014 16:09:15 +0200

Add glue to build task_curl example under osx

Diffstat:
contrib/examples/task_curl/build.sh | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/contrib/examples/task_curl/build.sh b/contrib/examples/task_curl/build.sh @@ -17,7 +17,12 @@ CFLAGS="-I. -I/usr/local/include -Wall -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wshadow \ -Wpointer-arith -Wcast-qual -Wsign-compare -g" -LDFLAGS="-L/usr/local/lib -shared -lcurl" +OSNAME=$(uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z) +if [ "${OSNAME}" = "darwin" ]; then + LDFLAGS="-dynamiclib -undefined suppress -flat_namespace -lcurl" +else + LDFLAGS="-L/usr/local/lib -shared -lcurl" +fi MODULE_BUILD_DATE=$(date +"%Y-%m-%d %H:%M:%S")