dewind/real-growl — Issue #4: Support MacRuby
Author: dewind
Created: 2011-12-18 00:21:07+00:00
State: open

Currently compiling under MacRuby fails:

```
/usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -ObjC -arch x86_64 -o ruby_delegate.o -c ruby_delegate.c
ruby_delegate.c: In function ‘-[RubyDelegate init]’:
ruby_delegate.c:7: warning: suggest parentheses around assignment used as truth value
/usr/bin/gcc -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -ObjC -arch x86_64 -o real_growl_api.o -c real_growl_api.c
real_growl_api.c: In function ‘classMethod_installed’:
real_growl_api.c:50: warning: ‘isGrowlInstalled’ is deprecated (declared at /Library/Frameworks/Growl.framework/Headers/GrowlApplicationBridge.h:50)
/usr/bin/gcc -dynamic -bundle -undefined suppress -flat_namespace -arch x86_64 -o real_growl_api.bundle ruby_delegate.o real_growl_api.o -L. -L/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib -arch x86_64 -lobjc -framework Foundation -framework Growl -lmacruby
ld: Linked dylibs built for GC-only but object files built for retain/release for architecture x86_64
collect2: ld returned 1 exit status
make: *** [real_growl_api.bundle] Error 1
```

Real Growl needs to compile with GC enabled under MacRuby. Which means retain/release/autorelease should become no-ops under GC. This can be done using preprocessor macros.