Fix compilation on older Apple versions

Adds libc++ to CXX flags
Fixes macdeployqt on Qt5
Also fixes zynaddsubfx linking on Mac
This commit is contained in:
tresf
2016-06-19 18:44:42 -04:00
parent 5dd650b850
commit 46179f475d
10 changed files with 59 additions and 18 deletions

View File

@@ -181,6 +181,14 @@ bool RemotePlugin::init( const QString &pluginExecutable,
m_failed = false;
}
QString exec = QFileInfo(QDir("plugins:"), pluginExecutable).absoluteFilePath();
#ifdef LMMS_BUILD_APPLE
// search current directory first
QString curDir = QCoreApplication::applicationDirPath() + "/" + pluginExecutable;
if( QFile( curDir ).exists() )
{
exec = curDir;
}
#endif
#ifdef LMMS_BUILD_WIN32
if( ! exec.endsWith( ".exe", Qt::CaseInsensitive ) )
{