Skip to content

Commit

Permalink
use papi and pdt env vars as well (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
crbaird committed Dec 21, 2016
1 parent 3342569 commit 50857f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/perf-tools/tau/SPECS/tau.spec
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ sed -i "s|$TAUROOT|%{install_path}|g" $(egrep -IR "$TAUROOT" %buildroot%{install
# fix tau lib arch location
sed -i "s|/x86_64/lib|/lib|g" $(egrep -IR "/x86_64/lib" %buildroot%{install_path}|awk -F : '{print $1}')

# replace hard MPI paths with env var
# replace hard paths with env vars
sed -i "s|$MPI_DIR|\$\{MPI_DIR\}|g" $(egrep -IR "$MPI_DIR" %buildroot%{install_path}|awk -F : '{print $1}')
sed -i "s|$PAPI_DIR|\$\{PAPI_DIR\}|g" $(egrep -IR "$PAPI_DIR" %buildroot%{install_path}|awk -F : '{print $1}')
sed -i "s|$PDTOOLKIT_DIR|\$\{PDTOOLKIT_DIR\}|g" $(egrep -IR "$PDTOOLKIT_DIR" %buildroot%{install_path}|awk -F : '{print $1}')

# link other bindings
pushd %{buildroot}%{install_path}/lib
Expand Down

0 comments on commit 50857f1

Please sign in to comment.