mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
-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
This commit is contained in:
@@ -572,7 +572,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
|
||||
GCCArgs.push_back("-shared"); // `-shared' for Linux/X86, maybe others
|
||||
#endif
|
||||
|
||||
#if defined(__ia64__) || defined(__alpha__)
|
||||
#if defined(__ia64__) || defined(__alpha__) || defined(__amd64__)
|
||||
GCCArgs.push_back("-fPIC"); // Requires shared objs to contain PIC
|
||||
#endif
|
||||
#ifdef __sparc__
|
||||
|
Reference in New Issue
Block a user