This is the mail archive of the cygwin mailing list for the Cygwin 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: needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls


Replying to myself to correct things...

Mark Geisert wrote:
Shen, Chang (MSFC-EV43) wrote:
Hi All

Can anyone provide me with a step-by-step instruction to build newlib under
window10 cygwin32 or cygwin64?
Such as tool chain and environment settings.  I googled and could not find it.

I should read better. I see so many "how to build Cygwin" questions I read yours as another one. You're doing something different. Here's what works:

    cd /opt    (for example)
    mkdir build install
    ln -s your-source-directory src

    cd build   (so you're in /opt/build)
    /opt/src/configure --prefix=/opt/install -v
    mkdir newlib

    cd newlib  (so you're in /opt/build/newlib)
    /opt/src/newlib/configure --prefix=/opt/install/newlib -v
    make

That will create libm.a, libg.a, and libc.a in /opt/build/newlib.

..mark

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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