From 96c4795032892951fc57f9925122405790c1d85d Mon Sep 17 00:00:00 2001 From: David Uhden Collado Date: Thu, 10 Oct 2024 05:34:02 +0200 Subject: [PATCH] Force dynamic linking with Boost Filesystem Updated the Makefile to dynamically link the Boost Filesystem library by adding the -lboost_filesystem option to the LDLIBS variable. This change resolves undefined reference errors encountered during compilation, where specific Boost Filesystem functions were not found by the linker (ld). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6af1fe0..1ba6a84 100755 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ INCFLAGS = -I$(LIBI2PD_PATH) -I$(LIBI2PD_CLIENT_PATH) DEFINES = -DOPENSSL_SUPPRESS_DEPRECATED LDFLAGS = -LDLIBS = $(I2PD_PATH)/$(I2PD_LIB) -lboost_system$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz +LDLIBS = $(I2PD_PATH)/$(I2PD_LIB) -lboost_system$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lboost_filesystem$(BOOST_SUFFIX) -lssl -lcrypto -lz ifeq ($(UNAME),Linux)