...
Code Block |
---|
cp ./CMakeFiles/express.dir/link.txt ./CMakeFiles/express.dir/link.txt.original;
cat ./CMakeFiles/express.dir/link.txt | sed -r "s/\s+/\n/g" | \
awk -v TACC_BOOST_INC=$TACC_BOOST_INC -v TACC_BOOST_LIB=$TACC_BOOST_LIB -v MY_BAMTOOLS_DIR=$MY_BAMTOOLS_DIR '
BEGIN {print; printf "-I%s\n",TACC_BOOST_INC};
{print}; /rdynamic/ {exit};
END {printf "-Wl,-rpath,%s/lib -L%s/lib -lbamtools %s/lib/libbamtools.a -L%s -lboost_filesystem -lboost_thread -lboost_system -lboost_program_options -lpthread\n",MY_BAMTOOLS_DIR,MY_BAMTOOLS_DIR,MY_BAMTOOLS_DIR,TACC_BOOST_LIB;}' \
| tr '\n' ' ' | xargs echo > ./CMakeFiles/express.dir/link.txt
|
...