From: Julien Cristau Subject: Re: [PATCH] tests/ programs need -lrt too since they use clock_gettime. Date: Fri, 9 Apr 2010 21:00:49 +0200 Message-ID: <20100409190049.GK3082@radis.liafa.jussieu.fr> References: <1270820807-21442-1-git-send-email-edwintorok@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1270820807-21442-1-git-send-email-edwintorok@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: =?iso-8859-1?B?VPZy9ms=?= Edwin Cc: dri-devel@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org On Fri, Apr 9, 2010 at 16:46:46 +0300, T=F6r=F6k Edwin wrote: > When using the binutils gold linker, even if libdrm.so is already linked = against > -lrt you still need to link your app against -lrt if your app needs symbo= ls from > it. > = > Signed-off-by: T=F6r=F6k Edwin > --- > tests/Makefile.am | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > = > diff --git a/tests/Makefile.am b/tests/Makefile.am > index 3e74705..81006ab 100644 > --- a/tests/Makefile.am > +++ b/tests/Makefile.am > @@ -4,7 +4,7 @@ AM_CPPFLAGS =3D \ > -I $(top_srcdir)/include/drm \ > -I $(top_srcdir) > = > -LDADD =3D $(top_builddir)/libdrm.la > +LDADD =3D $(top_builddir)/libdrm.la @CLOCK_LIB@ > = > noinst_PROGRAMS =3D \ > dristat \ The tests don't use librt afaict, the uses of clock_gettime() are in libdrm and libdrm_intel. So your explanation doesn't seem to make sense... Cheers, Julien ---------------------------------------------------------------------------= --- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --