1
votes

I only have ssh access to a Mac OSX 10.6 computer, so, Xcode is out of scope. Currently, I have trouble to figure out the right format of g++ output: do I need to append -shared and -fPIC, or -dynamiclib or other magic flag in order to get a firefox recognizable binary?

2
I think it is a design flaw. A correct answer should be automatically up-voted. - liuliu

2 Answers

2
votes

I use the following:

  • -dynamiclib
  • -fPIC
  • -arch foo as needed
  • -DXP_MAC=1, -DXP_MACOSX=1 etc.
  • -framework UsedFrameWork as needed
  • -mmacosx-version-min=10.x if needed

Also remember to put it all in a plugin bundle and to include a suitable plist.

0
votes

It should also be noted that you can compile something using xcode from the command line using xcodebuild.