fix: ncurses/ncursesw need --with-pic for static linking into PIE

Static archives without -fPIC cannot be linked into PIE executables
(default on modern Linux). redbear-netctl-console failed to link with:
  libncursesw.a: relocation R_X86_64_32 ... can not be used when making a PIE
            object; recompile with -fPIE

Added --with-pic to ncurses and ncursesw configure flags to produce
position-independent static archives.
This commit is contained in:
2026-07-12 19:51:02 +03:00
parent d73dcde3ad
commit ea1ea51c3b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ COOKBOOK_CONFIGURE_FLAGS+=(
--disable-stripping
--disable-widec
--enable-pc-files
--with-pic
--without-ada
--without-manpages
--without-tests
+1
View File
@@ -14,6 +14,7 @@ COOKBOOK_CONFIGURE_FLAGS+=(
--disable-ext-colors
--disable-stripping
--enable-widec
--with-pic
--without-ada
--without-manpages
--without-tests