New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] --enable-static-boost=yes still links against dynamic boost libraries. #384
Labels
Comments
there seems to be a problem with the build system, because doing the linking manually works as expected and produces a binary with boost statically linked to it. 1. export:export CPPFLAGS="-I/mss/work/table/usr/include"
export LDFLAGS="-L/mss/work/table/usr/lib"
export LIBRARY_PATH="/mss/work/table/usr/lib" 2. configure:./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
\
--enable-static-boost \
--with-boost=/mss/work/table/usr \
\
--enable-clock \
--enable-outputs \
--enable-unicode \
--enable-visualizer \
\
--with-curl \
--with-fftw \
--with-taglib 3. build:make -j2 -f Makefile 4. remove the binary and link it manually, statically linking boost libraries:cd src/
rm -rfv ncmpcpp
x86_64-apathy-linux-musl-g++ \
-march=native -mtune=native \
-std=c++14 \
-L/mss/work/table/usr/lib \
\
-o ncmpcpp \
curses/formatted_color.o curses/scrollpad.o \
curses/window.o screens/browser.o \
screens/clock.o screens/help.o \
screens/lastfm.o screens/lyrics.o \
screens/media_library.o screens/outputs.o \
screens/playlist.o screens/playlist_editor.o \
screens/screen.o screens/screen_type.o \
screens/search_engine.o screens/sel_items_adder.o \
screens/server_info.o screens/song_info.o \
screens/sort_playlist.o screens/tag_editor.o \
screens/tiny_tag_editor.o screens/visualizer.o \
\
utility/comparators.o utility/html.o \
utility/option_parser.o utility/string.o \
utility/type_conversions.o utility/wide_string.o \
\
actions.o bindings.o charset.o configuration.o \
curl_handle.o display.o enums.o format.o global.o \
helpers.o lastfm_service.o lyrics_fetcher.o \
macro_utilities.o mpdpp.o mutable_song.o ncmpcpp.o \
settings.o song.o song_list.o status.o statusbar.o \
tags.o title.o \
\
-Wl,-Bstatic -lboost_date_time -lboost_filesystem \
-lboost_locale -lboost_program_options -lboost_regex \
-lboost_thread -lboost_system \
\
-Wl,-Bdynamic -licui18n -licuuc -licudata -lmpdclient \
-lreadline -lpthread -lncursesw -lfftw3 -lcurl -ltag 5. do
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
building the latest state of the repo using the
--enable-static-boost=yes
flag, it builds just fine but still links against dynamic boost libraries. if there's only static.a
libraries, it simply fails sayingconfigure: error: cannot find the flags to link with Boost locale
.To Reproduce
i have boost-1.72.0 installed at
/mss/work/table/usr
.after running configure with these exact flags, you'll see that it builds fine if you have dynamic boost libraries installed, but it still looks for them when you execute the binary.
if you have only static boost libraries installed, it'll simply fail saying:
configure: error: cannot find the flags to link with Boost locale
Expected behavior
to link boost libraries statically when it is said so.
Screenshots/Logs
If applicable, add screenshots or logs to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: