Fix PREFIX_BINARY for NixOS users
This commit is contained in:
parent
b087af4105
commit
a95d366047
2 changed files with 28 additions and 6 deletions
|
@ -92,6 +92,8 @@ $(PREFIX)/gcc-install: $(PREFIX)/gcc-install.tar.gz
|
|||
rm -rf "$@.partial" "$@"
|
||||
mkdir -p "$@.partial"
|
||||
tar --extract --file "$<" --directory "$@.partial" --strip-components=1
|
||||
[ -n "$$NIX_INTERPRETER" ] && find "$@.partial" -executable -type f -exec \
|
||||
patchelf --set-interpreter "$$NIX_INTERPRETER" "{}" \;
|
||||
touch "$@.partial"
|
||||
mv "$@.partial" "$@"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue