help-make
[Top][All Lists]
Advanced

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

Re: How to switch behaviour according to glibc version?


From: Bob Proulx
Subject: Re: How to switch behaviour according to glibc version?
Date: Wed, 6 Apr 2016 14:55:44 -0600
User-agent: Mutt/1.5.24 (2015-08-30)

David Aldrich wrote:
> glibc 2.19 has a bug that is critical for us. I don't want to
> upgrade the version of the system's glibc because that could break
> other applications. I have a copy of glibc 2.22 that we use just for
> linking our application.

Instead of doing either the usual thing in these cases is to create a
replacement function with the correct behavior.  Then test if the
system library has the problem and use the included code if it does.
If not then use the system library.  That would be much better.

Since you say the bug (which you haven't described) is already
corrected in a later glibc version then you can simply use the code
from the later version verbatim.  No need to write any actual code for
this yourself since it already exists.

Bob



reply via email to

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