#2532: try and auto-detect "system" directories to strip from THORN_INC_DIRS and THORN_LIB_DIRS
Reporter: Roland Haas Status: new Milestone: Version: development version Type: enhancement Priority: minor Component: Cactus
Currently we use two utilities `strip-inc-dirs.sh` and `strip-lib-dirs.sh` to remove “system” libraries from `THORN_INC_DIRS` and `THORN_LIB_DIRS` in ExternalLibraries. However the list used is hard-coded and not always correct (see eg #2528).
It may be better to:
1. make the list of directories to strip option list variables 2. try to auto-detect them in the Cactus know-architectures files
To auto-detect on GNU/Linux with gcc/ld one can try and use the suggestion on [https://stackoverflow.com/questions/9922949/how-to-print-the-ldlinker-search...) and [https://stackoverflow.com/questions/17939930/finding-out-what-the-gcc-includ...) namely
``` gcc -print-search-dirs ```
and
``` echo | gcc -E -Wp,-v - ```
-- Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2532/try-and-auto-detec...
trac@lists.einsteintoolkit.org