Xcode build with optimization results in missing symbol


#1

I’m curious if anyone can think of a reason that a plugin built in Xcode 5 with optimization enabled would fail to be recognized as a valid plugin.

Every other setting is defaulted as though I had just started this project in the Projucer, and the same plug in with -O0 builds and loads fine, but setting optimization to -O3 fails to load. When attempting to load the plug in with the plug-in host the following error is shown in the debug console:

Attempting to load VST: /Library/Audio/Plug-Ins/VST/vAST.vst
2016-06-09 16:42:24.127 Plugin Host[1755:303] Error loading /Library/Audio/Plug-Ins/VST/vAST.vst/Contents/MacOS/vAST:  dlopen(/Library/Audio/Plug-Ins/VST/vAST.vst/Contents/MacOS/vAST, 262): Symbol not found: ___sincos_stret
  Referenced from: /Library/Audio/Plug-Ins/VST/vAST.vst/Contents/MacOS/vAST
  Expected in: /usr/lib/libSystem.B.dylib
 in /Library/Audio/Plug-Ins/VST/vAST.vst/Contents/MacOS/vAST

Does anyone know what I have to do to provide that missing symbol when optimization is turned on?