[Buildroot] [PATCH 1/1] package/gnuplot: Add patch to fix 'undefined reference to gp_read_history'

Michael Fischer mf at go-sys.de
Thu Sep 3 13:30:14 UTC 2020


Signed-off-by: Michael Fischer <mf at go-sys.de>
---
 package/gnuplot/0002-without-history.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/gnuplot/0002-without-history.patch

diff --git a/package/gnuplot/0002-without-history.patch b/package/gnuplot/0002-without-history.patch
new file mode 100644
index 0000000000..2ce144eabd
--- /dev/null
+++ b/package/gnuplot/0002-without-history.patch
@@ -0,0 +1,18 @@
+Patch to solve the 'undefined reference to gp_read_history'
+
+Signed-off-by: Michael Fischer <mf at go-sys.de>
+
+
+diff -Naur a/src/history.c b/src/history.c
+--- a/src/history.c	2020-09-03 14:48:47.875493026 +0200
++++ b/src/history.c	2020-09-03 14:50:39.493972218 +0200
+@@ -91,7 +91,9 @@
+ void
+ read_history(char *filename)
+ {
++#ifdef GNUPLOT_HISTORY
+     gp_read_history(filename);
++#endif	
+ }
+ 
+ 
-- 
2.28.0



More information about the buildroot mailing list