git: 4e9442df82ea - main - graphics/gmt: fix build on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jan 2022 18:17:55 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4e9442df82ea7db8ba5396cbde90d8f272bdcfd6
commit 4e9442df82ea7db8ba5396cbde90d8f272bdcfd6
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-04 18:11:41 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-04 18:11:41 +0000
graphics/gmt: fix build on big-endian
ld: error: src/libgmt.so.6.3.0: undefined reference to bswap32 [--no-allow-shlib-undefined]
---
graphics/gmt/files/patch-src_grd2xyz.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/graphics/gmt/files/patch-src_grd2xyz.c b/graphics/gmt/files/patch-src_grd2xyz.c
new file mode 100644
index 000000000000..b4199a5ebfa9
--- /dev/null
+++ b/graphics/gmt/files/patch-src_grd2xyz.c
@@ -0,0 +1,10 @@
+--- src/grd2xyz.c.orig 2022-01-03 22:31:11 UTC
++++ src/grd2xyz.c
+@@ -23,6 +23,7 @@
+ * Version: 6 API
+ */
+
++#include "gmt_common_byteswap.h"
+ #include "gmt_dev.h"
+
+ #define THIS_MODULE_CLASSIC_NAME "grd2xyz"