From c16ef4276d9b3773ff12adf9e7cf2683c182826e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 6 Oct 2025 19:15:52 +0300 Subject: ./configure: define TE_CHECK_MODULES() which takes static linking into account * There already was --enable-static-executables which would pass `-static` to the linker, but it did not help with library dependencies (that have to be pulled in transitively when linking statically). pkg-config does have `--static` support though. * Now all pkg-config found libraries will use `pkg-config --static` when --enable-static-executables, which simplifies linking statically. Previously you'd either need to set PKG_CONFIG="pkg-config --static" or you would have to manually list library dependencies. --- .fmsbw/10-freebsd14-msys-sciteco | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to '.fmsbw/10-freebsd14-msys-sciteco') diff --git a/.fmsbw/10-freebsd14-msys-sciteco b/.fmsbw/10-freebsd14-msys-sciteco index 1c71b17..037ac66 100755 --- a/.fmsbw/10-freebsd14-msys-sciteco +++ b/.fmsbw/10-freebsd14-msys-sciteco @@ -80,11 +80,8 @@ export CURSES_CFLAGS=-I/mingw64/include/pdcurses/ # helper binaries are still linked dynamically, forcing us to ship # all DLLs anyway. Therefore it makes little sense to link SciTECO # itself statically - it only wastes a few MB. -# You will also have to add --enable-static-executables. -# The additional Windows libraries are for PDCursesMod/WinGUI: -#export LIBGLIB_LIBS="-lglib-2.0 -lintl -liconv -lpcre -lole32 -lws2_32 -luuid" +# You would also have to add --enable-static-executables. # FIXME: Once there is an --enable-lto, we should use that. -#export CFLAGS="-O3 -flto -DGLIB_STATIC_COMPILATION" # NOTE: LTO is broken with libstdc++. # https://github.com/HolyBlackCat/quasi-msys2/issues/44 export CFLAGS="-O3 -flto=thin" -- cgit v1.2.3