1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Ensure plugin shared-code target is built with private symbol visibility

This commit is contained in:
reuk 2023-08-10 13:23:46 +01:00
parent 0037e44a23
commit 6d7bf9281a
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -129,14 +129,14 @@ public:
{
public:
MakefileTarget (build_tools::ProjectType::Target::Type targetType, const MakefileProjectExporter& exporter)
: build_tools::ProjectType::Target (targetType), owner (exporter)
: Target (targetType), owner (exporter)
{}
StringArray getCompilerFlags() const
{
StringArray result;
if (getTargetFileType() == sharedLibraryOrDLL || getTargetFileType() == pluginBundle)
if (getTargetFileType() == sharedLibraryOrDLL || getTargetFileType() == pluginBundle || type == SharedCodeTarget)
{
result.add ("-fPIC");
result.add ("-fvisibility=hidden");