Also pass -gcc-tool-args when building a shared object.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-03-12 00:53:34 +00:00
parent 30143763b9
commit fd82995823

View File

@ -671,8 +671,11 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
std::vector<const char*> GCCArgs;
GCCArgs.push_back(GCCPath.c_str());
for (std::vector<std::string>::const_iterator
I = gccArgs.begin(), E = gccArgs.end(); I != E; ++I)
GCCArgs.push_back(I->c_str());
// Compile the C/asm file into a shared object
GCCArgs.push_back("-x");
GCCArgs.push_back(fileType == AsmFile ? "assembler" : "c");