diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2015-08-20 18:28:31 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2015-08-23 10:30:00 -0500 |
commit | c234f37b5995457e2a5b518648e6735612cb3c27 (patch) | |
tree | 7bfbbb1f8a0c124cf2e94698340b53940f637918 /pkgs/build-support | |
parent | 90a72bd177ec55d24913fa32547cd78dca08624e (diff) | |
download | nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.tar nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.tar.gz nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.tar.bz2 nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.tar.lz nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.tar.xz nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.tar.zst nixlib-c234f37b5995457e2a5b518648e6735612cb3c27.zip |
makeWrapper: child process inherits argv[0]
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/make-wrapper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/make-wrapper.sh b/pkgs/build-support/setup-hooks/make-wrapper.sh index 41f2a59246d1..f474ff5e88ed 100644 --- a/pkgs/build-support/setup-hooks/make-wrapper.sh +++ b/pkgs/build-support/setup-hooks/make-wrapper.sh @@ -72,8 +72,8 @@ makeWrapper() { # Note: extraFlagsArray is an array containing additional flags # that may be set by --run actions. - echo exec "$original" $flagsBefore '"${extraFlagsArray[@]}"' '"$@"' >> $wrapper - + echo exec -a '"$0"' "$original" $flagsBefore '"${extraFlagsArray[@]}"' '"$@"' >> $wrapper + chmod +x $wrapper } |