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/20-freebsd14-osx-sciteco | 3 --- 1 file changed, 3 deletions(-) (limited to '.fmsbw/20-freebsd14-osx-sciteco') diff --git a/.fmsbw/20-freebsd14-osx-sciteco b/.fmsbw/20-freebsd14-osx-sciteco index a3eea1f..3279053 100755 --- a/.fmsbw/20-freebsd14-osx-sciteco +++ b/.fmsbw/20-freebsd14-osx-sciteco @@ -45,13 +45,10 @@ export LDFLAGS="-flto=thin" mkdir build-osx cd build-osx -# FIXME: Perhaps SciTECO's configure.ac should use PKG_CHECK_MODULES_STATIC() -# whenever --enable-static-executables is used. # NOTE: Make sure we pick up the SDK's ncurses instead of the one pulled in # via MacPorts. ../configure --host=x86_64-apple-darwin25 --disable-bootstrap --with-interface=ncurses \ --enable-static-executables --with-scitecodatadir=../share/sciteco \ - PKG_CONFIG="x86_64-apple-darwin25-pkg-config --static" \ CURSES_CFLAGS="-D_DARWIN_C_SOURCE -DNCURSES_WIDECHAR" CURSES_LIBS="-lncurses" gmake install-strip DESTDIR=`pwd`/temp-install # There are libraries we cannot link against statically. -- cgit v1.2.3