Using macports-libcxx to build a non-MacPorts cmake project

Ken Cunningham ken.cunningham.webuse at
Mon May 3 21:46:12 UTC 2021

what you did actually might have worked, I think, ideally… too bad it didn’t.

Can you do this perhaps?

export CXXFLAGS="-nostdinc++ -I/opt/local/include/libcxx/v1” 
export LDFLAGS="-L/opt/local/lib/libcxx"

or maybe this: 

CXX=/path/to/clang-9.0 CXXFLAGS="-nostdinc++ -I/opt/local/include/libcxx/v1”  LDFLAGS="-L/opt/local/lib/libcxx” cmake ../path/to/source

or maybe:

CXX="/path/to/clang-9.0 -nostdinc++ -I/opt/local/include/libcxx/v1”  LDFLAGS="-L/opt/local/lib/libcxx” cmake ../path/to/source

I really need to finish that simple shell script that is supposed to set up the environment like MacPorts does for you, but I will probably never get around to that…


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list