Я пытаюсь статически связать libsdl в тесте, который я написал. Я сделал следующее:
g++ test.cpp -Wl,-Bstatic $(sdl-config --static-libs) -Wl,-Bdynamic
, который дал мне ошибку:
/usr/lib/x86_64-linux-gnu//libSDL.a(SDL_x11gl.o): In function`X11_GL_LoadLibrary':
(.text+0x703): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: cannot find -lasound
/usr/bin/ld: cannot find -lpulse-simple
/usr/bin/ld: cannot find -lpulse
collect2: error: ld returned 1 exit status
Я добавил строку «-L / usr / lib / x86_64-linux-gnu /» ( каталог, в котором находится libasound.so), но ничего не изменилось. Любое решение?