Fix bugpoint miscompilation support on OS/X
authorChris Lattner <sabre@nondot.org>
Mon, 19 Jul 2004 06:00:17 +0000 (06:00 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Jul 2004 06:00:17 +0000 (06:00 +0000)
Patch contributed by the fabulous Nate Begeman.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14994 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/ToolRunner.cpp
tools/bugpoint/ToolRunner.cpp

index 73a0c314186ce705c6e92e8218503d4276ab609f..71d421616293806587eb84301e6c08f222cc365c 100644 (file)
@@ -406,7 +406,9 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
 #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
+                                 // in data segment, rather than generating
+    "dynamic_lookup",            // blocks. dynamic_lookup requires that you set
+                                 // MACOSX_DEPLOYMENT_TARGET=10.3 in your env.
 #else
     "-shared",                   // `-shared' for Linux/X86, maybe others
 #endif
index 73a0c314186ce705c6e92e8218503d4276ab609f..71d421616293806587eb84301e6c08f222cc365c 100644 (file)
@@ -406,7 +406,9 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
 #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
+                                 // in data segment, rather than generating
+    "dynamic_lookup",            // blocks. dynamic_lookup requires that you set
+                                 // MACOSX_DEPLOYMENT_TARGET=10.3 in your env.
 #else
     "-shared",                   // `-shared' for Linux/X86, maybe others
 #endif