This is the mail archive of the
mailing list for the GCC project.
Re: getaddrinfo is not statically compiled
On 04/28/2010 05:24 PM, bassis wrote:
> Andrew Haley wrote:
>> Which version differences do you want to avoid?
>> gcc liks with libc by default. I don't know what you're asking.
>> If you really need getaddrinfo you can always shell out to an external
>> program. I'm not sure that's a good idea, though.
> I want to avoid linux-distribution differences.
> All I want is to run my program in CentOS but my program in compiled in
> Debian. A much easier solution would be to simply compile my program in
> CentOS but I do not have permission to do this. So, I was thinking of making
> my program use the libc and ld files of Debian instead of the ones provided
> by CentOS.
> Is this not possible ? Is there another way of doing this ?
I tell you what I'd do: I'd either link against the CentOS libraries or
install a CentOS virtual machine and build in there.