1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Removed the -no-pie linker flag from Linux builds

This commit is contained in:
Tom Poole 2017-11-28 13:12:15 +00:00
parent 210bc5897b
commit 85040c02e0
2 changed files with 6 additions and 14 deletions

View file

@ -493,15 +493,11 @@ private:
if (target.isDynamicLibrary())
flags.add ("-shared");
if (target.type == ProjectType::Target::StandalonePlugIn
|| target.type == ProjectType::Target::GUIApp)
flags.add ("-no-pie");
if (packages.size() > 0)
{
String pkgconfigLibs ("`pkg-config --libs");
for (auto p : packages)
for (auto& p : packages)
pkgconfigLibs << " " << p;
pkgconfigLibs << "`";

View file

@ -113,10 +113,6 @@ public:
if (getTargetFileType() == pluginBundle)
result.add ("-Wl,--no-undefined");
}
else if (type == GUIApp || type == StandalonePlugIn)
{
result.add ("-no-pie");
}
return result;
}
@ -149,19 +145,19 @@ public:
StringArray s;
const String cppflagsVarName = String ("JUCE_CPPFLAGS_") + getTargetVarName();
const String cppflagsVarName ("JUCE_CPPFLAGS_" + getTargetVarName());
s.add (cppflagsVarName + String (" := ") + defines.joinIntoString (" "));
s.add (cppflagsVarName + " := " + defines.joinIntoString (" "));
auto cflags = getCompilerFlags();
if (! cflags.isEmpty())
s.add (String ("JUCE_CFLAGS_") + getTargetVarName() + " := " + cflags.joinIntoString (" "));
s.add ("JUCE_CFLAGS_" + getTargetVarName() + " := " + cflags.joinIntoString (" "));
auto ldflags = getLinkerFlags();
if (! ldflags.isEmpty())
s.add (String ("JUCE_LDFLAGS_") + getTargetVarName() + " := " + ldflags.joinIntoString (" "));
s.add ("JUCE_LDFLAGS_" + getTargetVarName() + " := " + ldflags.joinIntoString (" "));
String targetName (owner.replacePreprocessorTokens (config, config.getTargetBinaryNameString()));
@ -172,7 +168,7 @@ public:
else
targetName = targetName.upToLastOccurrenceOf (".", false, false) + getTargetFileSuffix();
s.add (String ("JUCE_TARGET_") + getTargetVarName() + String (" := ") + escapeSpaces (targetName));
s.add ("JUCE_TARGET_" + getTargetVarName() + String (" := ") + escapeSpaces (targetName));
return s;
}