I\'m building C++11 with GCC 4.8 on CentOS 6 using \"hax\", then deploying on arbitrary CentOS 6 targets (on which anything C++-related out of the box will have been built a
In my Makefile:
GCC_INSTALL_DIR := $(shell $(CXX) -print-search-dirs | grep install | cut -d' ' -f2)
…then my main build target will perform:
ln -sf $(GCC_INSTALL_DIR)/libstdc++.so $(BIN_DIR)/deps/
…and I can dump everything in $(BIN_DIR)/deps into the right place on install.
$(BIN_DIR)/deps
I think.