I'm trying to build some 3rd party code and link it against our own private version of STLPort, their code uses CMake and I'm new to it.
I'm able to get the compile to work against our STLPort includes but I cannot stop the linker from linking in libstdc++. I've tried:
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib")
list(REMOVE_ITEM CMAKE_CXX_IMPLICIT_LINK_LIBRARIES stdc++)
but no luck.
Amazon Linux AMI (based on RHEL 5.x), CMake 2.8.12.
Suggestions/pointers would be greatly appreciated.
Thanks.