Ticket #4041: 0001-Fix-FTBFS-with-enabled-uTP-on-Debian.patch

File 0001-Fix-FTBFS-with-enabled-uTP-on-Debian.patch, 1.3 KB (added by taem, 11 years ago)
  • configure.ac

    From 39c1c0d6b93d809c28adb42aaf3c8076ebb12cf6 Mon Sep 17 00:00:00 2001
    From: Timur Birsh <taem@linukz.org>
    Date: Sat, 19 Feb 2011 22:35:20 +0600
    Subject: [PATCH] Fix FTBFS with enabled uTP on Debian
    
    ---
     configure.ac |    2 +-
     qt/qtr.pro   |    2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/configure.ac b/configure.ac
    index ea3968c..8ca7a3d 100644
    a b AC_ARG_ENABLE([utp], 
    225225              [build_utp=no])
    226226if test "x$build_utp" = "xyes" ; then
    227227    LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
    228     LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
     228    LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a -lrt"
    229229    AC_DEFINE([WITH_UTP],[1])
    230230fi
    231231AC_SUBST(LIBUTP_CFLAGS)
  • qt/qtr.pro

    diff --git a/qt/qtr.pro b/qt/qtr.pro
    index 2bcdeda..7da189a 100644
    a b LIBS += $${TRANSMISSION_TOP}/third-party/libutp/libutp.a 
    2323LIBS += $${TRANSMISSION_TOP}/third-party/dht/libdht.a
    2424LIBS += $${TRANSMISSION_TOP}/third-party/miniupnp/libminiupnp.a
    2525LIBS += $${TRANSMISSION_TOP}/third-party/libnatpmp/libnatpmp.a
    26 unix: LIBS += -L$${EVENT_TOP}/lib -levent -lz
     26unix: LIBS += -L$${EVENT_TOP}/lib -levent -lz -lrt
    2727win32:DEFINES += QT_DBUS
    2828win32:LIBS += -levent -lws2_32 -lintl
    2929win32:LIBS += -lidn -liconv -lwldap32 -liphlpapi