From ea1ea51c3bb1c3d36de11b25f8d397cc35d2b893 Mon Sep 17 00:00:00 2001 From: vasilito Date: Sun, 12 Jul 2026 19:51:02 +0300 Subject: [PATCH] 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. --- recipes/libs/ncurses/recipe.toml | 1 + recipes/libs/ncursesw/recipe.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/recipes/libs/ncurses/recipe.toml b/recipes/libs/ncurses/recipe.toml index c4135c6092..ad0affd889 100644 --- a/recipes/libs/ncurses/recipe.toml +++ b/recipes/libs/ncurses/recipe.toml @@ -14,6 +14,7 @@ COOKBOOK_CONFIGURE_FLAGS+=( --disable-stripping --disable-widec --enable-pc-files + --with-pic --without-ada --without-manpages --without-tests diff --git a/recipes/libs/ncursesw/recipe.toml b/recipes/libs/ncursesw/recipe.toml index d182dbdb5d..355d9d127a 100644 --- a/recipes/libs/ncursesw/recipe.toml +++ b/recipes/libs/ncursesw/recipe.toml @@ -14,6 +14,7 @@ COOKBOOK_CONFIGURE_FLAGS+=( --disable-ext-colors --disable-stripping --enable-widec + --with-pic --without-ada --without-manpages --without-tests