pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


buildcygwin.ksh93 - build Cygwin
Posted by Anonymous on Mon 6th Jul 2026 14:08
raw | new post
modification of post by Anonymous (view diff)

  1. #
  2. # buildcygwin.ksh93 - build Cygwin
  3. #
  4.  
  5. set -o xtrace
  6. set -o errexit
  7. set -o nounset
  8.  
  9. typeset cygbuildbase="$PWD"
  10.  
  11. rm -Rf newlib-cygwin/ testinstallroot builddir
  12. mkdir "${cygbuildbase}/testinstallroot"
  13. mkdir "${cygbuildbase}/builddir"
  14.  
  15. git clone -b cygwin-3_6-branch git://cygwin.com/git/newlib-cygwin.git
  16.  
  17.  
  18. #
  19. # patch sources and configure build
  20. #
  21. # generate Cygwin configure
  22. cd "${cygbuildbase}/newlib-cygwin/winsup/"
  23. ./autogen.sh
  24.  
  25. # patch all "configure" scripts" and remove pax from am_cv_prog_tar_ustar
  26. # list - we pick-up /usr/bin/pax it will interactively ask
  27. # 'ATTENTION! pax archive volume change required.\nReady for archive
  28. # volume: 1\nInput archive name or "." to quit pax.'
  29. (set -o xtrace ; sed -i "s/_am_tools='gnutar plaintar pax cpio none'/_am_tools='gnutar plaintar cpio none'/g" $(find "${cygbuildbase}/newlib-cygwin" -name 'configure') )
  30.  
  31. #
  32. # configure&&build cygwin
  33. #
  34. # (see https://www.cygwin.com/faq/faq.html#faq.programming.building-cygwin
  35. # for the original Cygwin build instructions)
  36. #
  37.  
  38.  
  39. # run newlib configure and build
  40. cd "${cygbuildbase}/builddir"
  41. /bin/bash "${cygbuildbase}/newlib-cygwin/configure" --prefix="${cygbuildbase}/testinstallroot"
  42. time nice make -j64 --load-average 64
  43.  
  44. time make install
  45.  
  46.  
  47. #EOF.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at