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 65a28e3db389d8b872c4cba9e6703cf0e8142cb0
parent 7a038fce91d693f9d871a9a0f5199c30d36fe24d
Author: Joris Vink <joris@coders.se>
Date:   Thu, 31 Jul 2014 23:19:18 +0200

Allow orbit to build things under OSX

Diffstat:
src/orbit.c | 16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/orbit.c b/src/orbit.c @@ -413,14 +413,22 @@ orbit_link_library(void *arg) { int idx; struct cfile *cf; - char *args[cfiles_count + 5], *libname; + char *args[cfiles_count + 10], *libname; orbit_vasprintf(&libname, "%s/%s.so", rootdir, appl); - args[0] = "gcc"; - args[1] = "-shared"; + idx = 0; + args[idx++] = "gcc"; + +#if defined(__MACH__) + args[idx++] = "-dynamiclib"; + args[idx++] = "-undefined"; + args[idx++] = "suppress"; + args[idx++] = "-flat_namespace"; +#else + args[idx++] = "-shared"; +#endif - idx = 2; TAILQ_FOREACH(cf, &source_files, list) args[idx++] = cf->opath;