[llvm-commits] [gcc-plugin] r83059 - /gcc-plugin/trunk/README

Duncan Sands baldrick at free.fr
Tue Sep 29 00:20:44 PDT 2009

Author: baldrick
Date: Tue Sep 29 02:20:43 2009
New Revision: 83059

URL: http://llvm.org/viewvc/llvm-project?rev=83059&view=rev
Add some notes on how to get the plugin working on darwin, where
dynamic libraries seem to work differently to everywhere else.


Modified: gcc-plugin/trunk/README
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/README?rev=83059&r1=83058&r2=83059&view=diff

--- gcc-plugin/trunk/README (original)
+++ gcc-plugin/trunk/README Tue Sep 29 02:20:43 2009
@@ -18,6 +18,10 @@
 patches need to be applied.  Configure gcc with your favorite options.
 Build gcc, and install it somewhere.
+Darwin special: the gcc configure script thinks darwin doesn't support dynamic
+libraries and concludes that plugins won't work.  Delete or improve the check.
+If you improve it, please send your patch to the gcc developers!
 Step 2: Build the plugin
@@ -30,6 +34,9 @@
 Build the plugin using "make".  The end result of the build is a shared
 library, llvm.so.
+Darwin special: "-shared" doesn't result in a correct dynamic library on darwin,
+use "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -dynamiclib" instead.

More information about the llvm-commits mailing list