aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2014-10-24 11:19:29 +0000
committerNicolas Thill <nico@openwrt.org>2014-10-24 11:19:29 +0000
commit7c11d5f4b104a6f1f9d758d3161436021fd4c1cb (patch)
treea000c8b5622688d9d87fb70d79b003b4baed6bda /package
parent809cc25f9d1bd203083dbaac2d549ccdebbdb5dc (diff)
downloadupstream-7c11d5f4b104a6f1f9d758d3161436021fd4c1cb.tar.gz
upstream-7c11d5f4b104a6f1f9d758d3161436021fd4c1cb.tar.bz2
upstream-7c11d5f4b104a6f1f9d758d3161436021fd4c1cb.zip
gdb: fix build failure on arm
Signed-off-by: Nicolas Thill <nico@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43042 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/devel/gdb/patches/101-arm-uclibc-sim-needs-libm.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/devel/gdb/patches/101-arm-uclibc-sim-needs-libm.patch b/package/devel/gdb/patches/101-arm-uclibc-sim-needs-libm.patch
new file mode 100644
index 0000000000..c3c99d22cd
--- /dev/null
+++ b/package/devel/gdb/patches/101-arm-uclibc-sim-needs-libm.patch
@@ -0,0 +1,22 @@
+This patch fixes a build error on arm:
+
+arm-openwrt-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES -I. -I. -I../common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes -Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=hard -static-libstdc++ -static-libgcc -L/fun/Projects/OpenWrt/dev/openwrt-core-2/staging_dir/target-arm_cortex-a8+vfpv3_uClibc-0.9.33.2_eabi/usr/lib -L/fun/Projects/OpenWrt/dev/openwrt-core-2/staging_dir/target-arm_cortex-a8+vfpv3_uClibc-0.9.33.2_eabi/lib -L/fun/Projects/OpenWrt/dev/openwrt-core-2/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/fun/Projects/OpenWrt/dev/openwrt-core-2/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -o run \
+ run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lz -lnsl
+../../libiberty/libiberty.a(floatformat.o): In function `floatformat_to_double':
+floatformat.c:(.text+0x454): undefined reference to `ldexp'
+floatformat.c:(.text+0x4a4): undefined reference to `ldexp'
+../../libiberty/libiberty.a(floatformat.o): In function `floatformat_from_double':
+floatformat.c:(.text+0x5dc): undefined reference to `frexp'
+floatformat.c:(.text+0x644): undefined reference to `ldexp'
+collect2: error: ld returned 1 exit status
+
+--- a/sim/arm/Makefile.in
++++ b/sim/arm/Makefile.in
+@@ -18,6 +18,7 @@
+ ## COMMON_PRE_CONFIG_FRAG
+
+ SIM_EXTRA_CFLAGS = -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES
++SIM_EXTRA_LIBS = -lm
+
+ COPRO=@COPRO@
+