diff options
author | K900 <me@0upti.me> | 2023-09-21 18:49:49 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-09-30 10:26:35 +0300 |
commit | 10cb2bd443b6ef50a1b9c5f5ef1e6db7d93cde62 (patch) | |
tree | 633625431bde86b44d1dca57541693c0e38d5462 /pkgs/build-support/setup-hooks/auto-patchelf.sh | |
parent | c3c657409a16395db3184938d3ee102036c4b959 (diff) |
autoPatchelfHook: add `patchelfFlags` option
This may be useful. Eventually. Maybe.
Diffstat (limited to 'pkgs/build-support/setup-hooks/auto-patchelf.sh')
-rw-r--r-- | pkgs/build-support/setup-hooks/auto-patchelf.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.sh b/pkgs/build-support/setup-hooks/auto-patchelf.sh index 0625565606f3c..371389df427bc 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.sh +++ b/pkgs/build-support/setup-hooks/auto-patchelf.sh @@ -63,6 +63,7 @@ autoPatchelf() { local appendRunpathsArray=($appendRunpaths) local runtimeDependenciesArray=($runtimeDependencies) + local patchelfFlagsArray=($patchelfFlags) @pythonInterpreter@ @autoPatchelfScript@ \ ${norecurse:+--no-recurse} \ --ignore-missing "${ignoreMissingDepsArray[@]}" \ @@ -70,7 +71,8 @@ autoPatchelf() { --libs "${autoPatchelfLibs[@]}" \ "${extraAutoPatchelfLibs[@]}" \ --runtime-dependencies "${runtimeDependenciesArray[@]/%//lib}" \ - --append-rpaths "${appendRunpathsArray[@]}" + --append-rpaths "${appendRunpathsArray[@]}" \ + --extra-args "${patchelfFlagsArray[@]}" } # XXX: This should ultimately use fixupOutputHooks but we currently don't have |