package/proxychains-ng: set -fPIC

Set -fPIC to avoid the following build failure with some architectures
such as mips or aarch64 raised since bump to version 4.14 in commit
35953d1e61 and
35a674bdbc:

checking what's the option to use in linker to set library name ...
cannot find an option to set library name

Fixes:
 - http://autobuild.buildroot.org/results/8ed1481e29321ed3da40251f700cb3bd66f62c94
 - http://autobuild.buildroot.org/results/fd01df6eb9a37257894740d44a33eece9123355a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023.02.x
Fabrice Fontaine 2023-02-26 16:44:21 +01:00 committed by Peter Korsgaard
parent d7ae47f0c6
commit 441b859a1e
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ PROXYCHAINS_NG_CPE_ID_VENDOR = proxychains-ng_project
define PROXYCHAINS_NG_CONFIGURE_CMDS
cd $(@D) && \
$(TARGET_CONFIGURE_OPTS) ./configure --prefix=/usr --sysconfdir=/etc
$(TARGET_CONFIGURE_OPTS) CPPFLAGS="$(TARGET_CPPFLAGS) -fPIC" \
./configure --prefix=/usr --sysconfdir=/etc
endef
define PROXYCHAINS_NG_BUILD_CMDS