summaryrefslogtreecommitdiff
path: root/server/autobuild
diff options
context:
space:
mode:
authorVedang Manerikar <ved.manerikar@gmail.com>2022-05-09 15:58:13 -0400
committerVedang Manerikar <ved.manerikar@gmail.com>2022-05-09 15:58:13 -0400
commit4460a4fd3122e6b53cab1b7d86d6e19022d81fb1 (patch)
tree717dc0f4dd7555b28e853265e40186ed31f33b86 /server/autobuild
parentdb093ce922a6dd0205b8d23dc827d35ca130d22f (diff)
Add workaround for compilation using C++17 standard library
As explained in #102 by @Pi-Cla and @uliw, `pdf-tools` relies on private headers provided by `poppler`. In order to compile these correctly, we need the standard library provided by C++17. `pdf-tools` is built and tested against C++11. This workaround provides the correct CXXFLAGS to compile the library and fixes the immediate broken compilation problem. There should be two "correct" fixes to these: 1. Remove dependence on private `poppler` headers. This is being tracked in #103 and #105 2. Upgrade `pdf-tools` to build and run against new C++ versions. This is being tracked in #109. Closes: #70, #76, #102, #108, politza/pdf-tools#706.
Diffstat (limited to 'server/autobuild')
-rwxr-xr-xserver/autobuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/autobuild b/server/autobuild
index 8b9c482..f9d2557 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -570,8 +570,8 @@ if [ -n "$INSTALL_DIR" ]; then
prefix=--bindir=$INSTALL_DIR
fi
-echo "./configure -q $prefix && make clean && make -s"
-eval "./configure -q $(quote "$prefix") && make clean && make -s || exit_fail"
+echo "./configure CXXFLAGS='-std=c++17' -q $prefix && make clean && make -s"
+eval "./configure CXXFLAGS='-std=c++17' -q $(quote "$prefix") && make clean && make -s || exit_fail"
echo
if [ -n "$INSTALL_DIR" ]; then
echo "---------------------------"