diff --git a/3.10/alpine3.16/Dockerfile b/3.10/alpine3.16/Dockerfile index 3dd3b3069..affda7969 100644 --- a/3.10/alpine3.16/Dockerfile +++ b/3.10/alpine3.16/Dockerfile @@ -84,7 +84,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.10/alpine3.17/Dockerfile b/3.10/alpine3.17/Dockerfile index 7648996bd..147fc2782 100644 --- a/3.10/alpine3.17/Dockerfile +++ b/3.10/alpine3.17/Dockerfile @@ -84,7 +84,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.10/bullseye/Dockerfile b/3.10/bullseye/Dockerfile index 9eab04e60..f5503d094 100644 --- a/3.10/bullseye/Dockerfile +++ b/3.10/bullseye/Dockerfile @@ -53,6 +53,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.10/buster/Dockerfile b/3.10/buster/Dockerfile index 52625e796..cd98ac041 100644 --- a/3.10/buster/Dockerfile +++ b/3.10/buster/Dockerfile @@ -53,6 +53,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.10/slim-bullseye/Dockerfile b/3.10/slim-bullseye/Dockerfile index c2b21e300..3532cd43d 100644 --- a/3.10/slim-bullseye/Dockerfile +++ b/3.10/slim-bullseye/Dockerfile @@ -78,7 +78,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.10/slim-buster/Dockerfile b/3.10/slim-buster/Dockerfile index 878165c64..e04983659 100644 --- a/3.10/slim-buster/Dockerfile +++ b/3.10/slim-buster/Dockerfile @@ -78,7 +78,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.11/alpine3.16/Dockerfile b/3.11/alpine3.16/Dockerfile index 5182f56ab..9820e74c2 100644 --- a/3.11/alpine3.16/Dockerfile +++ b/3.11/alpine3.16/Dockerfile @@ -84,7 +84,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.11/alpine3.17/Dockerfile b/3.11/alpine3.17/Dockerfile index 08d73329f..94206b463 100644 --- a/3.11/alpine3.17/Dockerfile +++ b/3.11/alpine3.17/Dockerfile @@ -84,7 +84,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.11/bullseye/Dockerfile b/3.11/bullseye/Dockerfile index 593826546..84c6bbaf5 100644 --- a/3.11/bullseye/Dockerfile +++ b/3.11/bullseye/Dockerfile @@ -53,6 +53,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.11/buster/Dockerfile b/3.11/buster/Dockerfile index b363d722b..12a30ca05 100644 --- a/3.11/buster/Dockerfile +++ b/3.11/buster/Dockerfile @@ -53,6 +53,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.11/slim-bullseye/Dockerfile b/3.11/slim-bullseye/Dockerfile index fc57a2d3f..bbdbcfbb4 100644 --- a/3.11/slim-bullseye/Dockerfile +++ b/3.11/slim-bullseye/Dockerfile @@ -78,7 +78,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.11/slim-buster/Dockerfile b/3.11/slim-buster/Dockerfile index eb607d651..f247000b5 100644 --- a/3.11/slim-buster/Dockerfile +++ b/3.11/slim-buster/Dockerfile @@ -78,7 +78,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.12-rc/alpine3.16/Dockerfile b/3.12-rc/alpine3.16/Dockerfile index 1e499bba4..5ce62ab42 100644 --- a/3.12-rc/alpine3.16/Dockerfile +++ b/3.12-rc/alpine3.16/Dockerfile @@ -84,7 +84,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.12-rc/alpine3.17/Dockerfile b/3.12-rc/alpine3.17/Dockerfile index d90ea26c4..2e071ba3e 100644 --- a/3.12-rc/alpine3.17/Dockerfile +++ b/3.12-rc/alpine3.17/Dockerfile @@ -84,7 +84,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.12-rc/bullseye/Dockerfile b/3.12-rc/bullseye/Dockerfile index 35f2794a8..c9d5c782a 100644 --- a/3.12-rc/bullseye/Dockerfile +++ b/3.12-rc/bullseye/Dockerfile @@ -53,6 +53,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.12-rc/buster/Dockerfile b/3.12-rc/buster/Dockerfile index 8c8c8ccba..f20a5ca13 100644 --- a/3.12-rc/buster/Dockerfile +++ b/3.12-rc/buster/Dockerfile @@ -53,6 +53,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.12-rc/slim-bullseye/Dockerfile b/3.12-rc/slim-bullseye/Dockerfile index 37a56e42e..66801a680 100644 --- a/3.12-rc/slim-bullseye/Dockerfile +++ b/3.12-rc/slim-bullseye/Dockerfile @@ -78,7 +78,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.12-rc/slim-buster/Dockerfile b/3.12-rc/slim-buster/Dockerfile index 3180be258..5ac1c1424 100644 --- a/3.12-rc/slim-buster/Dockerfile +++ b/3.12-rc/slim-buster/Dockerfile @@ -78,7 +78,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.7/alpine3.16/Dockerfile b/3.7/alpine3.16/Dockerfile index daf26d35e..abd763836 100644 --- a/3.7/alpine3.16/Dockerfile +++ b/3.7/alpine3.16/Dockerfile @@ -83,7 +83,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \ test_array \ diff --git a/3.7/alpine3.17/Dockerfile b/3.7/alpine3.17/Dockerfile index 1090f9df0..07d34f588 100644 --- a/3.7/alpine3.17/Dockerfile +++ b/3.7/alpine3.17/Dockerfile @@ -83,7 +83,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \ test_array \ diff --git a/3.7/bullseye/Dockerfile b/3.7/bullseye/Dockerfile index 6ba7bf238..fc69647cf 100644 --- a/3.7/bullseye/Dockerfile +++ b/3.7/bullseye/Dockerfile @@ -52,6 +52,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \ test_array \ diff --git a/3.7/buster/Dockerfile b/3.7/buster/Dockerfile index 8b70d59ca..54309bfed 100644 --- a/3.7/buster/Dockerfile +++ b/3.7/buster/Dockerfile @@ -52,6 +52,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \ test_array \ diff --git a/3.7/slim-bullseye/Dockerfile b/3.7/slim-bullseye/Dockerfile index 7bf37f5c1..02fb0028c 100644 --- a/3.7/slim-bullseye/Dockerfile +++ b/3.7/slim-bullseye/Dockerfile @@ -77,7 +77,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \ test_array \ diff --git a/3.7/slim-buster/Dockerfile b/3.7/slim-buster/Dockerfile index de0bbdba5..8069ab965 100644 --- a/3.7/slim-buster/Dockerfile +++ b/3.7/slim-buster/Dockerfile @@ -77,7 +77,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \ test_array \ diff --git a/3.8/alpine3.16/Dockerfile b/3.8/alpine3.16/Dockerfile index cd0dd7eb8..0aecd15b4 100644 --- a/3.8/alpine3.16/Dockerfile +++ b/3.8/alpine3.16/Dockerfile @@ -83,7 +83,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.8/alpine3.17/Dockerfile b/3.8/alpine3.17/Dockerfile index 799ac402a..a62ad1d06 100644 --- a/3.8/alpine3.17/Dockerfile +++ b/3.8/alpine3.17/Dockerfile @@ -83,7 +83,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.8/bullseye/Dockerfile b/3.8/bullseye/Dockerfile index 671f56637..66c323faf 100644 --- a/3.8/bullseye/Dockerfile +++ b/3.8/bullseye/Dockerfile @@ -52,6 +52,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.8/buster/Dockerfile b/3.8/buster/Dockerfile index 73e344e18..e60029f80 100644 --- a/3.8/buster/Dockerfile +++ b/3.8/buster/Dockerfile @@ -52,6 +52,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.8/slim-bullseye/Dockerfile b/3.8/slim-bullseye/Dockerfile index 614094fa0..e6d9efc5f 100644 --- a/3.8/slim-bullseye/Dockerfile +++ b/3.8/slim-bullseye/Dockerfile @@ -77,7 +77,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.8/slim-buster/Dockerfile b/3.8/slim-buster/Dockerfile index f6583e901..b274c500c 100644 --- a/3.8/slim-buster/Dockerfile +++ b/3.8/slim-buster/Dockerfile @@ -77,7 +77,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.9/alpine3.16/Dockerfile b/3.9/alpine3.16/Dockerfile index 4a222ac61..13e1ecf44 100644 --- a/3.9/alpine3.16/Dockerfile +++ b/3.9/alpine3.16/Dockerfile @@ -83,7 +83,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.9/alpine3.17/Dockerfile b/3.9/alpine3.17/Dockerfile index 15d4a3ac4..56046797f 100644 --- a/3.9/alpine3.17/Dockerfile +++ b/3.9/alpine3.17/Dockerfile @@ -83,7 +83,10 @@ RUN set -eux; \ # set thread stack size to 1MB so we don't segfault before we hit sys.getrecursionlimit() # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.9/bullseye/Dockerfile b/3.9/bullseye/Dockerfile index 56b859a7d..dfb6cfa83 100644 --- a/3.9/bullseye/Dockerfile +++ b/3.9/bullseye/Dockerfile @@ -52,6 +52,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.9/buster/Dockerfile b/3.9/buster/Dockerfile index 553b10084..39e2b37cf 100644 --- a/3.9/buster/Dockerfile +++ b/3.9/buster/Dockerfile @@ -52,6 +52,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'" \ ; \ make install; \ \ diff --git a/3.9/slim-bullseye/Dockerfile b/3.9/slim-bullseye/Dockerfile index 1df0935f8..d0625c293 100644 --- a/3.9/slim-bullseye/Dockerfile +++ b/3.9/slim-bullseye/Dockerfile @@ -77,7 +77,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/3.9/slim-buster/Dockerfile b/3.9/slim-buster/Dockerfile index eebe65b69..d61c45e28 100644 --- a/3.9/slim-buster/Dockerfile +++ b/3.9/slim-buster/Dockerfile @@ -77,7 +77,10 @@ RUN set -eux; \ ; \ nproc="$(nproc)"; \ make -j "$nproc" \ - LDFLAGS="-Wl,--strip-all" \ +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib',--strip-all" \ ; \ make install; \ \ diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index c76dadf37..cf32ec445 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -172,9 +172,10 @@ RUN set -eux; \ # https://github.com/alpinelinux/aports/commit/2026e1259422d4e0cf92391ca2d3844356c649d0 EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" \ {{ ) else "" end -}} -{{ if is_slim or is_alpine then ( -}} - LDFLAGS="-Wl,--strip-all" \ -{{ ) else "" end -}} +# \$ because of the double quotes in the shell to prevent interpolation +# $$ for make to not interpret the $O +# " because it needs the ' around the path, and '"'"' instead is 🤢 + LDFLAGS="-Wl,-rpath='\$\$ORIGIN/../lib'{{ if is_slim or is_alpine then ",--strip-all" else "" end }}" \ {{ if env.version == "3.7" then ( -}} # setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916 PROFILE_TASK='-m test.regrtest --pgo \