Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jan 21, 2024

Fix linking issue on MSYS2

@ghost
Copy link
Author

ghost commented Mar 13, 2024

@chrisws

@chrisws
Copy link
Contributor

chrisws commented Mar 13, 2024

Hi iahung3,

Thanks for your patch. Unfortunately this breaks cross compiling the windows version under linux.

On my system pkg-config -libs -static freetype2 gives Unknown option -libs

You could try changing it to pkg-config freetype2 --libs --static or alternatively this:

     if test $build_os = 'linux-gnu'; then
       PACKAGE_LIBS="${PACKAGE_LIBS} `sdl2-config --static-libs` `pkg-config freetype2 --libs`"
     else        
       PACKAGE_LIBS="${PACKAGE_LIBS} `sdl2-config --static-libs` `pkg-config -libs -static freetype2`"
     fi  

@ghost
Copy link
Author

ghost commented Mar 14, 2024

You could try changing it to pkg-config freetype2 --libs --static

Done. Thank you.

Copy link
Contributor

@chrisws chrisws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems fine now.

@chrisws chrisws merged commit 7475265 into smallbasic:master Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant