From e52ab8c0077149c0cbaa04bd5a171524cd843a10 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 12 Feb 2014 10:26:33 +0100 Subject: [PATCH] removed -nostdlib from tools/toolutil/Makefile udbgutil.o: In function `__static_initialization_and_destruction_0': /usr/include/c++/4.8.2/iostream:74: undefined reference to `__dso_handle' /bin/ld: udbgutil.o: relocation R_X86_64_PC32 against undefined hidden symbol `__dso_handle' can not be used when making a shared object --- icu.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu.spec b/icu.spec index d4061e3..7c3e499 100644 --- a/icu.spec +++ b/icu.spec @@ -84,7 +84,8 @@ sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../lib -licuuc -licui18n -lc -lgcc|' io/M sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../lib -licuuc -lc|' layout/Makefile sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../lib -licuuc -licule -lc|' layoutex/Makefile sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../../lib -licutu -licuuc -lc|' tools/ctestfw/Makefile -sed -i 's|^LIBS =.*|LIBS = -nostdlib -L../../lib -licui18n -licuuc -lpthread -lc|' tools/toolutil/Makefile +# As of ICU 52.1 the -nostdlib in tools/toolutil/Makefile results in undefined reference to `__dso_handle' +sed -i 's|^LIBS =.*|LIBS = -L../../lib -licui18n -licuuc -lpthread -lc|' tools/toolutil/Makefile #rhbz#813484 sed -i 's| \$(docfilesdir)/installdox||' Makefile # There is no source/doc/html/search/ directory