[llvm-commits] [dragonegg] r92915 - /dragonegg/trunk/README
Duncan Sands
baldrick at free.fr
Thu Jan 7 07:30:34 PST 2010
Author: baldrick
Date: Thu Jan 7 09:30:34 2010
New Revision: 92915
URL: http://llvm.org/viewvc/llvm-project?rev=92915&view=rev
Log:
Update the build instructions now that the build uses
the installed gcc-4.5.
Modified:
dragonegg/trunk/README
Modified: dragonegg/trunk/README
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/README?rev=92915&r1=92914&r2=92915&view=diff
==============================================================================
--- dragonegg/trunk/README (original)
+++ dragonegg/trunk/README Thu Jan 7 09:30:34 2010
@@ -14,9 +14,9 @@
Check out gcc from the gcc subversion repository:
svn checkout svn://gcc.gnu.org/svn/gcc/trunk SomeLocalDir
Apply the patches in the gcc-patches subdirectory, if any. Hopefully one day
-the plugin will work with an unpatched gcc, but for the moment a few small
-patches need to be applied. Configure gcc with your favorite options.
-Build gcc, and install it somewhere.
+the plugin will work with an unpatched gcc, but for the moment a small patch
+needs 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.
@@ -25,14 +25,12 @@
Step 2: Build the plugin
------------------------
-In the Makefile, set the GCCSOURCE_DIR variable to point to the place you
-checked out the gcc repository, rather than to where I checked it out.
-Set the GCCOBJECT_DIR to point to the place you built the repository.
-Admire the awfulness of the build system, and make a mental note to rewrite
-it properly.
-
-Build the plugin using "make". The end result of the build is a shared
-library, dragonegg.so.
+Build the plugin like this:
+ GCC=PATH_TO_JUST_INSTALLED_GCC make
+If the gcc installed in step 1 occurs in your path with the name gcc-4.5 (maybe
+via a symbolic link) then you can build the plugin like this:
+ make
+The end result of the build is a shared library, dragonegg.so.
Darwin special: "-shared" doesn't result in a correct dynamic library on darwin,
use "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress -dynamiclib" instead.
@@ -44,8 +42,6 @@
Run gcc as usual, but pass -fplugin=./dragonegg.so as an extra command line
argument. Make sure you use the gcc you installed above, not the system gcc!
-Currently the plugin isn't capable of compiling much - you have been warned.
-
------------------
- USEFUL OPTIONS -
More information about the llvm-commits
mailing list