Menu

compiling GCC PLUGINS on Mac OS X

We would like to thank Paul Carpenter who sent us infomation about compiling plugins on Mac OS X. An example makefile is:

all: test mylib.so

mylib.so: mylib.c
gcc -c mylib.c -g
gcc -dynamiclib -undefined dynamic_lookup -o mylib.so mylib.o

test: test.c
gcc -o test test.c

clean:
rm -f *.o
rm -f *.so

This info will be added to the next release of the Plugins ...

Posted by Grigori Fursin 2008-06-23

Log in to post a comment.