[Top][All Lists]

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

[Bug-gnulib] gettime and LIB_CLOCK_GETTIME

From: Simon Josefsson
Subject: [Bug-gnulib] gettime and LIB_CLOCK_GETTIME
Date: Sat, 07 Aug 2004 15:59:08 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

I've written a 'gnulib-tool --import' that sort of work.  Since I
haven't used gnulib verbatim in my projects, I need to fix things in
gnulib before I can really solely on 'gnulib-tool --import' in my
projects.  So expect a few bug reports and new modules.  When things
work for me, I'll send the new gnulib-tool.

The gettime module used to be simple, but now depend on clock_gettime,
which needs LIBADD += @address@hidden  How is this supposed to be
used by applications?  It seems simpler if gnulib would take care of
everything for the application.  I thought of the patch below, but it
would require some changes to gnulib-tool for --test to work, as
'lib_LIBADD' isn't supported now.  clock_time.m4 could simply append
LIBS too.


I guess requiring each project to add LIB_CLOCK_GETTIME to the LIBADD
for each binary that use gettime is a solution, although it seem like
a kludge.  If you think this is the proper solution, I think it should
be better documented, in doc/ somewhere.  (I can propose something.)


Index: gettime
RCS file: /cvsroot/gnulib/gnulib/modules/gettime,v
retrieving revision 1.3
diff -u -p -u -w -r1.3 gettime
--- gettime     20 Jan 2003 10:02:37 -0000      1.3
+++ gettime     7 Aug 2004 13:45:38 -0000
@@ -15,6 +15,7 @@ gl_GETTIME
 lib_SOURCES += gettime.c

reply via email to

[Prev in Thread] Current Thread [Next in Thread]