[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp
Misha Brukman
brukman at cs.uiuc.edu
Fri Jul 16 12:45:56 PDT 2004
Changes in directory llvm/lib/Support:
ToolRunner.cpp updated: 1.24 -> 1.25
---
Log message:
Correctly build shared objects on MacOS X for debugging code generators
---
Diffs of the changes: (+5 -1)
Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.24 llvm/lib/Support/ToolRunner.cpp:1.25
--- llvm/lib/Support/ToolRunner.cpp:1.24 Tue May 4 17:02:41 2004
+++ llvm/lib/Support/ToolRunner.cpp Fri Jul 16 14:45:45 2004
@@ -403,7 +403,11 @@
InputFile.c_str(), // Specify the input filename...
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
"-G", // Compile a shared library, `-G' for Sparc
-#else
+#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
+ "-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
+ "-fno-common", // allow global vars w/o initializers to live
+ // in data segment, rather than generating blocks
+#else
"-shared", // `-shared' for Linux/X86, maybe others
#endif
"-o", OutputFile.c_str(), // Output to the right filename...
More information about the llvm-commits
mailing list