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.
This commit is contained in:
Jehan 2024-10-28 01:20:55 +01:00
parent 69ebc25feb
commit 4ee549b4eb
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#include "config.h"
#include <math.h>
#include <string.h>
#include <errno.h>

View file

@ -24,6 +24,7 @@ if cfitsio_dep.found()
dependencies: [
libgimpui_dep,
cfitsio_dep,
math,
],
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)