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:
parent
06abae3967
commit
d15c60670a
@ -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}..."
|
||||
|
@ -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}..."
|
||||
|
Loading…
Reference in New Issue
Block a user