Re: Moving the gcc binary after it's been built

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

 



This might be useful in this context.

http://openwall.info/wiki/internal/gcc-local-build

regards,
 Damodar


On Thu, Aug 9, 2012 at 2:20 AM, Eric Wimmer <ewimmer@xxxxxxx> wrote:
>
> Thanks Jonathan.
>
> I have a stock gcc 4.1.2 build on the system as well, and I was able to
> copy the binaries to a different location and have the -print-search-dirs
> work as expected.  The copied gcc 4.7.1 binaries do not display the expected
> paths though.
>
> The builds were configured almost identically, except the gcc 4.1.2 build
> used --host, and the gcc 4.7.1 build used --build.  Could that explain the
> different output for the paths?
>
> Thanks
> -Eric
>
>
> Jonathan Wakely wrote:
>>
>> On 8 August 2012 21:15, Eric Wimmer wrote:
>>
>>>
>>> Hello,
>>>
>>> Should I be able to copy the gcc (and g++, gcov, etc) binaries to a
>>> different location after they've been built and have them behave the
>>> same?
>>>
>>
>>
>> Yes, but you need to move the entire GCC installation tree, preserving
>> relative paths from the binaries to the libraries and headers, you
>> can't just move the binaries.
>>
>
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux