From 4dfc9259081ecc0b730ce42fc2241ed9cb7b803e Mon Sep 17 00:00:00 2001 From: ToMe25 Date: Tue, 16 Feb 2021 15:32:43 +0100 Subject: [PATCH] Statically link to libraries This should hopefully produce a standalone executable --- .github/workflows/build.yml | 1 + .github/workflows/test.yml | 2 ++ src/meson.build | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f38cd02..5ce5836 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ on: - "**.cpp" - "**.h" - ".github/workflows/build.yml" + - "**meson.build" jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0900d3a..9143fe4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,14 @@ on: - "**.cpp" - "**.h" - ".github/workflows/test.yml" + - "**meson.build" pull_request: paths: - "**.c" - "**.cpp" - "**.h" - ".github/workflows/test.yml" + - "**meson.build" jobs: diff --git a/src/meson.build b/src/meson.build index 7fcaa28..6188f78 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1 +1 @@ -executable('hex-to-image', ['hex-to-image.cpp', 'stb_image_write.h']) +executable('hex-to-image', ['hex-to-image.cpp', 'stb_image_write.h'], cpp_args: ['-static', '-static-libgcc', '-static-libstdc++'])