From d2fdbe8eb454c1e1e83bdccf66dc252002d1577b Mon Sep 17 00:00:00 2001 From: Zsolt Parragi Date: Wed, 28 Jan 2026 14:28:53 +0100 Subject: [PATCH] Make building with LIBCXX possible Since old debian releases do not have gcc backports, we have to build with the llvm apt repos + libc++ This commit adds an option to build the validator with LIBCXX to allow that --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4dc15b0..765a90d 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,12 @@ include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif -SHLIB_LINK += -lcurl -static-libstdc++ +SHLIB_LINK += -lcurl +ifdef USE_LIBCXX +SHLIB_LINK += -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic +else +SHLIB_LINK += -static-libstdc++ +endif %.o: %.cpp $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(PG_CPPFLAGS) -c -o $@ $<