Skip to content

Commit

Permalink
Projucer: Ensure plugin shared-code target is built with private symb…
Browse files Browse the repository at this point in the history
…ol visibility
  • Loading branch information
reuk committed Aug 10, 2023
1 parent 0037e44 commit 6d7bf92
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -129,14 +129,14 @@ class MakefileProjectExporter : public ProjectExporter
{
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");
Expand Down

0 comments on commit 6d7bf92

Please sign in to comment.