From 4ee549b4eb8f85c5a54a807676b9e9e742d73694 Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 28 Oct 2024 01:20:55 +0100 Subject: [PATCH] plug-ins: link file-fits with libm. When linking with clang/lld, I had the following linking error: > ld.lld: error: undefined symbol: pow As a side change, also adding math.h header include, even though it didn't seem to break compilation. Just to be thorough. --- plug-ins/file-fits/fits.c | 1 + plug-ins/file-fits/meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/plug-ins/file-fits/fits.c b/plug-ins/file-fits/fits.c index b1ee485fb5..b4a8dbb433 100644 --- a/plug-ins/file-fits/fits.c +++ b/plug-ins/file-fits/fits.c @@ -36,6 +36,7 @@ #include "config.h" +#include #include #include diff --git a/plug-ins/file-fits/meson.build b/plug-ins/file-fits/meson.build index 2e93259f89..daf84d62fa 100644 --- a/plug-ins/file-fits/meson.build +++ b/plug-ins/file-fits/meson.build @@ -24,6 +24,7 @@ if cfitsio_dep.found() dependencies: [ libgimpui_dep, cfitsio_dep, + math, ], install: true, install_dir: gimpplugindir / 'plug-ins' / plugin_name)