termux-packages/packages/libsasl/config-ltconfig.patch
Henrik Grimler 6d6453ddc0 libsasl: assume -lc, -lcrypto work so that shared objects libplain,
libanonomous and more are aways built.

Should make the check introduced in commit
https://github.com/termux/termux-packages/commit/5519960 unnecessary.
2017-12-22 00:09:53 +01:00

24 lines
945 B
Diff

--- ./config/ltconfig 2012-10-12 14:05:48.000000000 +0000
+++ ../ltconfig 2017-12-21 13:49:35.243749635 +0000
@@ -1237,8 +1237,8 @@
*)
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ archive_cmds='$CC $CFLAGS -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC $CFLAGS -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
else
ld_shlibs=no
fi
@@ -1956,7 +1956,8 @@
shlibpath_var=DYLD_LIBRARY_PATH
;;
-gnu*)
+gnu* | linux-android*)
+ deplibs_check_method=pass_all
version_type=linux
need_lib_prefix=no
need_version=no