This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, v3] Potential solution to librt issue.


On Wed, Jul 23, 2008 at 12:35 AM, Chris Fairles <chris.fairles@gmail.com> wrote:
> Uses AC_SEARCH_LIB to check if clock_gettime is in -lrt or -lposix4
> (the latter for some Solaris archs). If its available, "-lrt" is
> assigned to GLIBCXX_LIBS which is AC_SUBST'd so its available in
> Makefile.am's as $(GLIBCXX_LIBS). I've just tacked it onto the LDFLAGS
> for libstdc++.so/a. There might be a more appropriate var to tack it
> onto (ldadd??).
>
> There's at least one issue: if clock_gettime is a builtin (i.e.
> doesn't require an external lib) then GLIBCXX_LIBS will hold the
> string "none required" which will obviously cause failures during
> linking. I'm not handling this in the patch because I'm not sure if
> its even possible for an arch to have a builtin clock_gettime but it
> can be added.
>
> Chris
>

And the change log.

Chris

Attachment: Changelog_librt.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]