get bugpoint working on ia64, by building .so's with -fpic. :)

llvm-svn: 20525
This commit is contained in:
Chris Lattner 2005-03-09 03:31:02 +00:00
parent 1f1462fafa
commit b9f0cebeb5
1 changed files with 4 additions and 0 deletions

View File

@ -450,6 +450,10 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
#else
"-shared", // `-shared' for Linux/X86, maybe others
#endif
#if defined(__ia64__)
"-fPIC", // IA64 requires shared objs to contain PIC
#endif
"-o", OutputFile.c_str(), // Output to the right filename...
"-O2", // Optimize the program a bit...
0