Unbreak ledger

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Unbreak ledger

Martin Ziemer
Since some snapshots ledger did not build.

I was able to make it build again with two changes:
1.) Use -std=gnu++11 as flag for clang
2.) Change the include-path for readline

For *me* the compiled port works fine.


Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-CMakeLists_txt 2 Nov 2018 16:27:53 -0000
@@ -0,0 +1,12 @@
+--- CMakeLists.txt Fri Nov  2 13:56:02 2018
++++ CMakeLists.txt Fri Nov  2 13:53:16 2018
+@@ -19,7 +19,7 @@
+
+ enable_testing()
+
+-add_definitions(-std=c++11)
++add_definitions(-std=gnu++11)
+ if (CYGWIN)
+   add_definitions(-U__STRICT_ANSI__)
+ endif()
+
Index: patches/patch-src_system.hh
===================================================================
RCS file: patches/patch-src_system.hh
diff -N patches/patch-src_system.hh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_system.hh 2 Nov 2018 16:27:53 -0000
@@ -0,0 +1,12 @@
+--- src/system.hh.in.orig 2016-01-11 15:59:38.000000000 +0000
++++ src/system.hh.in
+@@ -168,7 +168,8 @@ typedef std::ostream::pos_type ostream_p
+ #include "utf8.h"
+
+ #if HAVE_EDIT
+-#include <editline/readline.h>
++#include <readline/readline.h>
++#include <readline/history.h>
+ #endif
+
+ #include <boost/algorithm/string.hpp>