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).
This commit is contained in:
David Uhden Collado 2024-10-10 05:34:02 +02:00
parent e872010153
commit 96c4795032
No known key found for this signature in database
GPG key ID: 1A47E8A7D51FB3DA

View file

@ -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)