diff options
author | Edwin Török <edwintorok@gmail.com> | 2008-04-06 12:42:29 +0000 |
---|---|---|
committer | Edwin Török <edwintorok@gmail.com> | 2008-04-06 12:42:29 +0000 |
commit | 35594fa0a567342e31437b8a3bb812091fe61ac5 (patch) | |
tree | 10fe9f126b2c3392179181b8079b0eca68f45e61 /tools/bugpoint/Miscompilation.cpp | |
parent | 1da2d4e9fb009203cfa2db8a1a0a93dd36a5c644 (diff) | |
download | external_llvm-35594fa0a567342e31437b8a3bb812091fe61ac5.zip external_llvm-35594fa0a567342e31437b8a3bb812091fe61ac5.tar.gz external_llvm-35594fa0a567342e31437b8a3bb812091fe61ac5.tar.bz2 |
-fPIC is required on x86-64 when building shared objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 9f4d2ef..f2b1c72 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -907,7 +907,7 @@ bool BugDriver::debugCodeGenerator() { #if defined(sparc) || defined(__sparc__) || defined(__sparcv9) << " -G" // Compile a shared library, `-G' for Sparc #else - << " -shared" // `-shared' for Linux/X86, maybe others + << " -fPIC -shared" // `-shared' for Linux/X86, maybe others #endif << " -fno-strict-aliasing\n"; |