aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-01-04 18:11:41 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-01-04 18:11:41 +0000
commit4e9442df82ea7db8ba5396cbde90d8f272bdcfd6 (patch)
tree59654b6f5035f612fb9359dea0e98a9bc27980df
parentf6e17b1726baff072878a53cdcd19e31a9d33454 (diff)
downloadports-4e9442df82ea7db8ba5396cbde90d8f272bdcfd6.tar.gz
ports-4e9442df82ea7db8ba5396cbde90d8f272bdcfd6.zip
graphics/gmt: fix build on big-endian
ld: error: src/libgmt.so.6.3.0: undefined reference to bswap32 [--no-allow-shlib-undefined]
-rw-r--r--graphics/gmt/files/patch-src_grd2xyz.c10
1 files changed, 10 insertions, 0 deletions
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"