Browse Source

Removed the -no-pie linker flag from Linux builds

tags/2021-05-28
Tom Poole 8 years ago
parent
commit
85040c02e0
2 changed files with 6 additions and 14 deletions
  1. +1
    -5
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CodeBlocks.h
  2. +5
    -9
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Make.h

+ 1
- 5
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CodeBlocks.h 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 << "`";


+ 5
- 9
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Make.h 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;
}


Loading…
Cancel
Save