> -F/System/Library/Frameworks/JavaVM.framework/Frameworks I've stopped relying on any headers ever appearing in /System/Library/Frameworks, use ${SDKROOT}/System/Library/Frameworks instead.
If you're not using Xcode you can use xcrun to get a path to the SDK: $ xcrun --show-sdk-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk Older versions of xcrun didn't support that. For those you have to run: $ xcodebuild -sdk macosx -showsdks -version and parse the output with grep/sed/perl/whatever. -DrD-