mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2026-02-16 03:39:16 +00:00
configure: prevent error with -Werror=unused-parameter (#612)
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -251,7 +251,7 @@ check_link "whether we can use -Wl,--no-as-needed" "-Wl,--no-as-needed" \
|
|||||||
LD_SONAME_FLAG=
|
LD_SONAME_FLAG=
|
||||||
printf "checking what's the option to use in linker to set library name ... "
|
printf "checking what's the option to use in linker to set library name ... "
|
||||||
for o in --soname -h -soname -install_name; do
|
for o in --soname -h -soname -install_name; do
|
||||||
check_link_silent "-shared -Wl,$o,libconftest.so" "void test_func(int a) {}" && LD_SONAME_FLAG=$o && break
|
check_link_silent "-shared -Wl,$o,libconftest.so" "void test_func(void) {}" && LD_SONAME_FLAG=$o && break
|
||||||
done
|
done
|
||||||
if [ -z "$LD_SONAME_FLAG" ]; then
|
if [ -z "$LD_SONAME_FLAG" ]; then
|
||||||
printf '\ncannot find an option to set library name\n'
|
printf '\ncannot find an option to set library name\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user