Changeset 22233


Ignore:
Timestamp:
2010-07-16T15:29:10+02:00 (7 years ago)
Author:
nico
Message:

[packages] libtorrent: fix error when linking against libtorrent on arm (closes: #7026)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libtorrent/Makefile

    r21296 r22233  
    1111PKG_REV:=1165 
    1212PKG_VERSION:=0.12.6_r$(PKG_REV) 
    13 PKG_RELEASE:=1 
    14  
     13PKG_RELEASE:=2 
    1514 
    1615PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    4241 
    4342ifneq ($(CONFIG_GCC_VERSION_3_4)$(CONFIG_GCC_VERSION_4_1),) 
    44 TARGET_CPPFLAGS += -fno-strict-aliasing 
     43  TARGET_CPPFLAGS += -fno-strict-aliasing 
    4544endif 
    4645 
    4746TARGET_CPPFLAGS += -fno-inline 
     47 
     48# XXX: fixes the following error when configure from rtorrent is trying 
     49# to link against libtorrent on arm (#7026) 
     50# 
     51# ./staging_dir/toolchain-arm_v5t_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/usr/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.3.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ld: conftest: hidden symbol `__sync_add_and_fetch_4' in /media/Scratch/OpenWrt/backfire/build.d/orion/staging_dir/toolchain-arm_v5t_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/usr/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.3.3/libgcc.a(linux-atomic.o) is referenced by DSO 
     52# ./staging_dir/toolchain-arm_v5t_gcc-4.3.3+cs_uClibc-0.9.30.1_eabi/usr/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.3.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ld: final link failed: Nonrepresentable section on output 
     53# 
     54ifneq ($(CONFIG_arm),) 
     55  TARGET_LDFLAGS += -Wl,--whole-archive -lgcc -lgcc_s -Wl,--no-whole-archive 
     56endif 
    4857 
    4958# XXX: rtorrent needs encryption (--enable-openssl) 
Note: See TracChangeset for help on using the changeset viewer.