For complicated reasons, I am trying to build OpenUSD with clang on Ubuntu 22.04, linking against libc++.so rather than GNU’s libstdc++.so.
This sorta works if I specify -DCMAKE_CXX_FLAGS=-stdlib=libc++
as build_args to build_usd.py, except that it ends up linking with both libraries, causing a test application to eventually dump core.
I have tried lots of stuff, including:
- -nostdlib++
- -Wl,–exclude-libs,libstdc++.so.6
- Applying above options to both
tbb
andusd
So far, no luck. Any ideas, anyone?