sgx-sdk: fix BINUTILS_DIR substitute

This commit is contained in:
Vincent Haupert 2021-11-15 13:04:05 +01:00
parent 8c2b6bbaef
commit cd05703131

View file

@ -211,8 +211,8 @@ stdenv.mkDerivation rec {
header "Fixing BINUTILS_DIR in buildenv.mk"
substituteInPlace $out/share/bin/buildenv.mk \
--replace 'BINUTILS_DIR := /usr/local/bin' \
'BINUTILS_DIR := ${BINUTILS_DIR}'
--replace 'BINUTILS_DIR ?= /usr/local/bin' \
'BINUTILS_DIR ?= ${BINUTILS_DIR}'
header "Fixing GDB path in bin/sgx-gdb"
substituteInPlace $out/bin/sgx-gdb --replace '/usr/local/bin/gdb' '${gdb}/bin/gdb'