[erlang-questions] creating linked in drivers for Erlang on OSX using gcc
Mon Mar 17 11:52:41 CET 2008
> My cross-platform Makefile does that:
> $(CC) $(CFLAGS) -fPIC -o $@ -c $<
> $(CC) -bundle -flat_namespace -undefined suppress -o $@ $< \
> || $(CC) -shared -o $@ $<
> Specifically, note the
> -bundle -flat_namespace -undefined suppress
> also, CFLAGS has -fno-common
We'd tried with -bundle and -fno-common previously and it didn't work.
Finally, my co-conspiritor tried renaming the output files to .so
instead of .dylib and guess what!? It works.
Thanks for your help. I'd love to know why the file extension alone
causes a problem though.
More information about the erlang-questions