On Thu, Dec 17, 2009 at 10:48 AM, Douglas Gemignani
<doug...@gemignani.org> wrote:
> Hi,
>
> What command line? I found this -nostdinc  and -I to include folders, -b also?

Here is a Makefile to link against the newly built glibc.


H.J.
----
> []s
> Douglas Gemignani
>
>
>
> On Thu, Dec 17, 2009 at 4:11 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
>> On Thu, Dec 17, 2009 at 10:00 AM, Douglas Gemignani
>> <doug...@gemignani.org> wrote:
>>> Hello,
>>>
>>> I would like to know if it is possible to link binaries against old
>>> versions of glibc. What's the best way to do that?
>>> If I specify -L to point to my old glibc will be enough? I don't want
>>> to "install" those old libraries on my machine, so I just compiled the
>>> old glibc with my current stable gcc and then used the created library
>>> to link to my binary, but this dosn't work very well.
>>>
>>
>> It depends on if you want to use a special gcc or not. You can build
>> a new gcc with sysroot, which points to your old glibc. If you want to
>> use the existing gcc, you need a special command line to link against
>> the old glibc.
>>
>> --
>> H.J.
>>
>



-- 
H.J.

Attachment: Makefile
Description: Binary data

Reply via email to