about summary refs log tree commit diff
path: root/pkgs/games/build-support/setup-hooks/auto-patchelf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/build-support/setup-hooks/auto-patchelf.sh')
-rw-r--r--pkgs/games/build-support/setup-hooks/auto-patchelf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/build-support/setup-hooks/auto-patchelf.sh b/pkgs/games/build-support/setup-hooks/auto-patchelf.sh
index 33408533..501aacbf 100644
--- a/pkgs/games/build-support/setup-hooks/auto-patchelf.sh
+++ b/pkgs/games/build-support/setup-hooks/auto-patchelf.sh
@@ -4,7 +4,7 @@ gatherLibraries() {
     autoPatchelfLibs+=("$1/lib")
 }
 
-envHooks+=(gatherLibraries)
+addEnvHooks "$targetOffset" gatherLibraries
 
 isExecutable() {
     [ "$(file -b -N --mime-type "$1")" = application/x-executable ]