This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: building libc_nano and libg_nano


On Sat, 2018-11-17 at 16:38 -0800, Robert Newberry wrote:
> I looked at the launchpad logs (per the stackoverflow suggestion) and
> can see a spot, just after "make install", in that does thew
> following:
> 
> 	cp -f /<<PKGBUILDDIR>>/build-native/target-libs/arm-none-
> eabi/lib/./libc.a /<<PKGBUILDDIR>>/install-native/arm-none-
> eabi/lib/./libc_nano.a
> 
> but I don't find anything like this in the "newlib" sources.
> 
> Is this magic available somewhere?  If I try to replicate it by hand,
> I'm afraid I'll goof it up...

There's nothing in newlib sources that does the copying. You are
supposed to do this by hand. This is also the same thing I'm doing in
my bleeding-edge-toolchain script:

https://github.com/FreddieChopin/bleeding-edge-toolchain

around line 487 of the main script there's the copying. But please note
that it is not only newlib's libc that has to be compiled differently,
renamed and copied to proper places - this also affects 4 other .a
archives.

BTW - from what you wrote it seems that you try to accomplish the same
goal as my bleeding-edge-toolchain script (; I never used it on Mac,
but maybe you could give it a try if you find it interesting and then
let me know whether it worked or not? (;

Regards,
FCh


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