[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#685561: gnat-4.6: Add -lrt flag to link libgnarl-4.6.so.1



Package: gnat-4.6
Version: 4.6.3-5
Severity: important
Tags: patch
Usertags: hurd
User: debian-hurd@lists.debian.org

When building polyorb-2.8~20110207 for GNU/Hurd linking of
DYNAMIC/tools/po_catref/po_catref fails due to an undefined reference:
/usr/lib/i386-gnu/libgnarl-4.6.so.1: undefined reference to
`clock_gettime'

The reason for that is that libgnarl-4.6.so.1 is not linked with
librt.so.1. The solution is to add -lrt to the THREADSLIB variable.
Preferably it could be applied by modifying the patch: 
gcc_ada_gcc-interface_Makefile.in.diff
--- a/debian/patches/gcc_ada_gcc-interface_Makefile.in.diff	2012-07-19
00:12:30.000000000 +0200
+++ b/debian/patches/gcc_ada_gcc-interface_Makefile.in.diff	2012-08-21
23:52:59.000000000 +0200
@@ -24,7 +24,7 @@
 +    indepsw.adb<indepsw-gnu.adb
 +
 +  EH_MECHANISM=-gcc
-+  THREADSLIB = -lpthread
++  THREADSLIB = -lpthread -lrt
 +  GNATLIB_SHARED = gnatlib-shared-dual
 +  GMEM_LIB = gmemlib
 +  LIBRARY_VERSION := $(LIB_VERSION)


Reply to: