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:
@@ -14,6 +14,7 @@ COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-stripping
|
||||
--disable-widec
|
||||
--enable-pc-files
|
||||
--with-pic
|
||||
--without-ada
|
||||
--without-manpages
|
||||
--without-tests
|
||||
|
||||
@@ -14,6 +14,7 @@ COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
--disable-ext-colors
|
||||
--disable-stripping
|
||||
--enable-widec
|
||||
--with-pic
|
||||
--without-ada
|
||||
--without-manpages
|
||||
--without-tests
|
||||
|
||||
Reference in New Issue
Block a user