tools: libtool: do not symlink files in bootstrap
authorMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 29 Aug 2024 18:04:02 +0000 (20:04 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Thu, 29 Aug 2024 18:06:03 +0000 (20:06 +0200)
Another instance of files in build_dir symlinking to staging_dir. While
the symlinks do not currently cause any bugs in the libtool package,
such symlinks were found to make the build more fragile, as writing to
the symlink may accidentally modify the shared file in staging_dir. Pass
--copy to bootstrap to disable the symlinking.

Link: https://github.com/openwrt/openwrt/pull/15825
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
(cherry picked from commit d6e54593198851235906c6ab77c20c6209ab19f5)

tools/libtool/Makefile

index 118719147821b9c163ece69e63ea6a6026fba015..e76aed8ced6108dc01dbc2338708e98b71c70fc2 100644 (file)
@@ -28,6 +28,7 @@ define Host/Bootstrap
                cd $(HOST_BUILD_DIR); \
                $(AM_TOOL_PATHS) \
                ./bootstrap \
+                       --copy \
                        --force \
                        --skip-git \
                        --skip-po \