From 866b5af051a2d6cd6b81b2daee63181e05abc85e Mon Sep 17 00:00:00 2001 From: Michael Zimmermann Date: Wed, 19 May 2021 20:03:59 +0200 Subject: [PATCH] fix gcc LTO (#1562) I discovered this when trying to run clippy on a crate where a dependency (In my case clippy) has LTO enabled. /usr/lib only has a symlink to to lto plugin which resides in /usr/libexec: https://pkgs.alpinelinux.org/contents?file=liblto_plugin.so&path=&name=gcc&branch=v3.13&repo=main&arch=x86_64 Previously, compilation failed with the following message: = note: cc: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not found compilation terminated. Co-authored-by: Michael Zimmermann --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d46526ce..2b0de134 100644 --- a/Dockerfile +++ b/Dockerfile @@ -371,6 +371,7 @@ COPY --from=base_image /usr/local/bin/ /usr/local/bin/ COPY --from=base_image /usr/local/lib/ /usr/local/lib/ COPY --from=base_image /usr/local/share/ /usr/local/share/ COPY --from=base_image /usr/lib/ /usr/lib/ +COPY --from=base_image /usr/libexec/ /usr/libexec/ COPY --from=base_image /usr/share/ /usr/share/ COPY --from=base_image /usr/include/ /usr/include/ COPY --from=base_image /lib/ /lib/