git: 1e99b807283a - main - graphics/libavif: Fix build with non-default options
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Mar 2025 13:01:55 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1e99b807283ac2743600d0db0832c97e8fcaa4db
commit 1e99b807283ac2743600d0db0832c97e8fcaa4db
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-03-15 13:01:11 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-03-15 13:01:11 +0000
graphics/libavif: Fix build with non-default options
libavif uses round/roundf which is in the math library.
It builds fine with default options because libm is brought in via its dependencies.
Therefore, we add it to LDFLAGS explicitly.
PR: 285403, 285405
Reported by: many
---
graphics/libavif/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/graphics/libavif/Makefile b/graphics/libavif/Makefile
index dab1c9103e11..a79c75b4adfa 100644
--- a/graphics/libavif/Makefile
+++ b/graphics/libavif/Makefile
@@ -22,6 +22,7 @@ CMAKE_OFF= AVIF_BUILD_EXAMPLES
CMAKE_ON= AVIF_BUILD_APPS
CMAKE_TESTING_ARGS= -DAVIF_GTEST:STRING=SYSTEM
CMAKE_TESTING_ON= AVIF_BUILD_TESTS
+LDFLAGS+= -lm
USE_LDCONFIG= yes
USE_GITHUB= yes