I've tried to provide -L /usr/local/lib
, tried -nostdinc++
, tried to set DYLD_LIBRARY_PATH
and DYLD_FALLBACK_LIBRARY_PATH
but otool
aways gives me:
otool -L sample
sample:
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
How to link to my custom compiled /usr/local/lib/libc++.dylib
on OS X?
Variations of compilation were upon basic clang++ -std=c++11 -stdlib=libc++
.