termux-packages/packages/libsasl/config-ltconfig.patch

25 lines
1011 B
Diff

diff -u -r ../cyrus-sasl-2.1.26/config/ltconfig ./config/ltconfig
--- ../cyrus-sasl-2.1.26/config/ltconfig 2012-10-12 10:05:48.000000000 -0400
+++ ./config/ltconfig 2015-12-15 06:27:44.916679421 -0500
@@ -1237,9 +1240,9 @@
*)
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 +1962,7 @@
shlibpath_var=DYLD_LIBRARY_PATH
;;
-gnu*)
+gnu* | linux-android*)
version_type=linux
need_lib_prefix=no
need_version=no