smallbasic / SmallBASIC

SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax
https://smallbasic.github.io
GNU General Public License v3.0
209 stars 37 forks source link

Update configure.ac #204

Closed ghost closed 7 months ago

ghost commented 9 months ago

Fix linking issue on MSYS2

ghost commented 7 months ago

@chrisws

chrisws commented 7 months ago

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 commented 7 months ago

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

Done. Thank you.