Skip to content

Commit

Permalink
Merge pull request #459 from aaronenyeshi/patch-10
Browse files Browse the repository at this point in the history
RHEL and CentOS should also be using -c++abi
  • Loading branch information
whchung authored Sep 13, 2017
2 parents 8746a43 + f0576fd commit bd1f35c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions hcc_config/hcc_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,11 @@ void ldflags(void) {
}
}

// extra libraries if using libc++ for C++ runtime
// extra libraries if using libc++ for C++ runtime
// If using RHEL or CentOS, must also use c++abi
#ifdef USE_LIBCXX
std::cout << " -stdlib=libc++ ";
#ifndef HCC_TOOLCHAIN_RHEL
std::cout << " -lc++abi ";
#endif
std::cout << " -stdlib=libc++";
std::cout << " -lc++ -lc++abi ";
#endif
std::cout << " -ldl -lm -lpthread";

Expand Down

0 comments on commit bd1f35c

Please sign in to comment.