Jump to content
Eternal Lands Official Forums
hussam

error linking against static sdl

Recommended Posts

I got the following error linking against static SDL
"undefined reference to symbol 'dlclose@@GLIBC_2.2.5'" + something that indicated I was missing passing -ldl
I changed the call to pkg-config sdl --libs in the makefile to sdl-config --static-libs to make it link correctly.

The output of the two commands doesn't match with sdl-config passing -ldl to the linker.

Is this some issue on my side? I have a static sdl build (turning it into a build dependency only) so I don't have to keep SDL installed to avoid other packages inadvertently linking against it instead of SDL2.

This wasn't an issue in my last build from July.

Edited by hussam

Share this post


Link to post
Share on other sites

I changed the makefile recently to use pkg-config over the other way because it appears to be deprecated.  Did you try adding the --static flag to the pkg-config command?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×