#!/bin/sh

set -e -o pipefail

./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-only64bit

SYSLWR=`uname | tr '[:upper:]' '[:lower:]'`

mv ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR} ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR}_orig
echo '#!/usr/bin/env perl' >> ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR}
cat ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR}_orig >> ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR}
chmod u+x ${SRC_DIR}/coregrind/link_tool_exe_${SYSLWR}

make
make install

#!/bin/sh

set -e -o pipefail

./configure --prefix=${PREFIX} --disable-dependency-tracking --enable-only64bit

make
make install

Drop `link_tool_exe` hack for `perl` path
Drop `link_tool_exe` hack for `perl` path

Seems like `valgrind` is already picking up the right `perl` here. So
there doesn't seem to be any need in patching it in manually. Given
this, drop the hack from `build.sh` to run the correct `perl`.
