mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-28 22:50:12 +00:00
This fixes the following compiler error. ld.lld: error: --fix-cortex-a53-843419 is only supported on AArch64 targets The configure.patch is modified to replace libgcrypt-config with equivalent pkg-config command. Otherwise, libgcrypt-config is picked up from host system and -L/usr/lib/x86_64-linux-gnu is added to LDFLAGS.
77 lines
3.0 KiB
Diff
77 lines
3.0 KiB
Diff
# Use TERMUX_PREFIX to prevent searching libraries from host x86_64 system.
|
|
# libgcrypt-config is replaced with PKG_CONFIG for same reason.
|
|
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -7,22 +7,22 @@
|
|
## Copyright 2002 Lucumo ##
|
|
##############################
|
|
|
|
-prefix='/usr/local/'
|
|
+prefix='@TERMUX_PREFIX@/'
|
|
bindir='$prefix/bin/'
|
|
-sbindir='$prefix/sbin/'
|
|
+sbindir='$prefix/bin/'
|
|
etcdir='$prefix/etc/bitlbee/'
|
|
mandir='$prefix/share/man/'
|
|
datadir='$prefix/share/bitlbee/'
|
|
-config='/var/lib/bitlbee/'
|
|
+config='$prefix/var/lib/bitlbee/'
|
|
libdir='$prefix/lib/'
|
|
plugindir='$prefix/lib/bitlbee/'
|
|
includedir='$prefix/include/bitlbee/'
|
|
systemdsystemunitdir=''
|
|
-libevent='/usr/'
|
|
-pidfile='/var/run/bitlbee.pid'
|
|
+libevent='$prefix/'
|
|
+pidfile='$prefix/var/run/bitlbee.pid'
|
|
ipcsocket=''
|
|
pcdir='$prefix/lib/pkgconfig'
|
|
-systemlibdirs="/lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib"
|
|
+systemlibdirs="@TERMUX_PREFIX@/lib"
|
|
sysroot=''
|
|
|
|
configure_args="$@"
|
|
@@ -402,8 +402,8 @@ detect_gnutls()
|
|
{
|
|
if $PKG_CONFIG --exists gnutls; then
|
|
cat <<EOF >>Makefile.settings
|
|
-EFLAGS+=$($PKG_CONFIG --libs gnutls) $(libgcrypt-config --libs)
|
|
-CFLAGS+=$($PKG_CONFIG --cflags gnutls) $(libgcrypt-config --cflags)
|
|
+EFLAGS+=$($PKG_CONFIG --libs gnutls) $($PKG_CONFIG --libs libgcrypt)
|
|
+CFLAGS+=$($PKG_CONFIG --cflags gnutls) $($PKG_CONFIG --cflags libgcrypt)
|
|
EOF
|
|
ssl=gnutls
|
|
if ! $PKG_CONFIG gnutls --atleast-version=2.8; then
|
|
@@ -413,8 +413,8 @@ EOF
|
|
ret=1
|
|
elif libgnutls-config --version > /dev/null 2> /dev/null; then
|
|
cat <<EOF >>Makefile.settings
|
|
-EFLAGS+=$(libgnutls-config --libs) $(libgcrypt-config --libs)
|
|
-CFLAGS+=$(libgnutls-config --cflags) $(libgcrypt-config --cflags)
|
|
+EFLAGS+=$(libgnutls-config --libs) $($PKG_CONFIG --libs libgcrypt)
|
|
+CFLAGS+=$(libgnutls-config --cflags) $($PKG_CONFIG --cflags libgcrypt)
|
|
EOF
|
|
|
|
ssl=gnutls
|
|
@@ -762,15 +762,15 @@ fi
|
|
if [ "$otr" = 1 ]; then
|
|
# BI == built-in
|
|
echo '#define OTR_BI' >> config.h
|
|
- echo "EFLAGS+=$($PKG_CONFIG --libs libotr) $(libgcrypt-config --libs)" >> Makefile.settings
|
|
- echo "CFLAGS+=$($PKG_CONFIG --cflags libotr) $(libgcrypt-config --cflags)" >> Makefile.settings
|
|
+ echo "EFLAGS+=$($PKG_CONFIG --libs libotr) $($PKG_CONFIG --libs libgcrypt)" >> Makefile.settings
|
|
+ echo "CFLAGS+=$($PKG_CONFIG --cflags libotr) $($PKG_CONFIG --cflags libgcrypt)" >> Makefile.settings
|
|
echo 'OTR_BI=otr.o' >> Makefile.settings
|
|
elif [ "$otr" = "plugin" ]; then
|
|
# for some mysterious reason beyond the comprehension of my mortal mind,
|
|
# the libgcrypt flags aren't needed when building as plugin. add them anyway.
|
|
echo '#define OTR_PI' >> config.h
|
|
- echo "OTRFLAGS=$($PKG_CONFIG --libs libotr) $(libgcrypt-config --libs)" >> Makefile.settings
|
|
- echo "CFLAGS+=$($PKG_CONFIG --cflags libotr) $(libgcrypt-config --cflags)" >> Makefile.settings
|
|
+ echo "OTRFLAGS=$($PKG_CONFIG --libs libotr) $($PKG_CONFIG --libs libgcrypt)" >> Makefile.settings
|
|
+ echo "CFLAGS+=$($PKG_CONFIG --cflags libotr) $($PKG_CONFIG --cflags libgcrypt)" >> Makefile.settings
|
|
echo 'OTR_PI=otr.so' >> Makefile.settings
|
|
fi
|
|
|