From fbbdbf49051b17252eb148befb93f23f0f1a26c5 Mon Sep 17 00:00:00 2001 From: BtbN Date: Fri, 14 May 2021 19:10:57 +0200 Subject: [PATCH] Statically linking libgomp seems impossible --- images/base-linux64/Dockerfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/images/base-linux64/Dockerfile b/images/base-linux64/Dockerfile index b44423b..3107874 100644 --- a/images/base-linux64/Dockerfile +++ b/images/base-linux64/Dockerfile @@ -14,8 +14,20 @@ RUN --mount=src=ct-ng-config,dst=/.config \ # Prepare "cross" environment to heavily favour static builds RUN \ - find /opt/ct-ng -type l -and -name '*.so' -and -not -ipath '*plugin*' -and -not -name 'libdl.*' -and -not -name 'libc.*' -and -not -name 'libm.*' -delete && \ - find /opt/ct-ng -name 'libdl.a' -or -name 'libc.a' -or -name 'libm.a' -delete + find /opt/ct-ng -type l \ + -and -name '*.so' \ + -and -not -ipath '*plugin*' \ + -and -not -name 'libdl.*' \ + -and -not -name 'libc.*' \ + -and -not -name 'libm.*' \ + -and -not -name 'libgomp.*' \ + -delete && \ + find /opt/ct-ng \ + -name 'libdl.a' \ + -or -name 'libc.a' \ + -or -name 'libm.a' \ + -or -name 'libgomp.a' \ + -delete ADD toolchain.cmake /toolchain.cmake ADD cross.meson /cross.meson