git: 98338f1dc958 - main - math/giacxcas: Fix building with Flang
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Sep 2025 16:34:43 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=98338f1dc95863d0013d82d63c0d9fdcc5e94f95
commit 98338f1dc95863d0013d82d63c0d9fdcc5e94f95
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-09-14 14:06:51 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-09-14 16:34:32 +0000
math/giacxcas: Fix building with Flang
The code was including wrong fenv.h, so trick it into including a correct one
---
math/giacxcas/files/patch-src_quickjs.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/math/giacxcas/files/patch-src_quickjs.c b/math/giacxcas/files/patch-src_quickjs.c
index c330699c7c28..26f5c81fdc3a 100644
--- a/math/giacxcas/files/patch-src_quickjs.c
+++ b/math/giacxcas/files/patch-src_quickjs.c
@@ -1,6 +1,14 @@
--- src/quickjs.c.orig 2021-03-23 12:33:15 UTC
+++ src/quickjs.c
-@@ -41,6 +41,8 @@
+@@ -34,13 +34,15 @@
+ #ifdef NSPIRE_NEWLIB
+ #include "fenv.h"
+ #else
+-#include <fenv.h>
++#include </usr/include/fenv.h>
+ #endif
+ #include <math.h>
+ #if defined(__APPLE__)
#include <malloc/malloc.h>
#elif defined(__linux__)
#include <malloc.h>