Add support for adding linking flags

This commit is contained in:
Thraix
2020-03-01 20:44:13 +01:00
parent bbf5b25f3e
commit 4b48413941
5 changed files with 25 additions and 11 deletions
+5
View File
@@ -77,7 +77,12 @@ void Makefile::Save(ConfigFile& conf, unsigned int flags)
outputFile << "-L./" << *it << " ";
}
outputFile << std::endl;
std::vector<std::string>& lflags = conf.GetSettingVectorString(ConfigSetting::LFlag);
outputFile << "LDFLAGS=";
for(auto it = lflags.begin(); it != lflags.end(); ++it)
{
outputFile << *it << " ";
}
for(auto it = libdirs.begin(); it != libdirs.end(); ++it)
{
outputFile << "-Wl,-rpath=" << *it << " ";