Home | History | Annotate | Line # | Download | only in compat
README revision 1.2
      1 $NetBSD: README,v 1.2 2008/10/27 07:22:22 mrg Exp $
      2 
      3 This directory contains Makefile fragments that will build all of the
      4 NetBSD libraries in 32-bit mode and install them into /usr/lib/<arch>
      5 and also install a /usr/libexec/ld.elf_so-<arch>.
      6 
      7 This is current only supported for the amd64 and sparc64 platforms,
      8 where <arch> is "i386" or "sparc" respectively.  (It could be used to
      9 build MIPS o32 libraries on n32 system, but not both n32 and o32 on
     10 a n64 system.  It only supports one extra target.)
     11 
     12 
     13 Most of the makefiles here were built with the "build-makefiles" script.
     14 The expections are lib/csu/Makefile and ld.elf_so/Makefile.
     15 
     16 
     17 The method used is the:
     18 	- evaluate some local variables
     19 	- switch .CURDIR
     20 	- include original Makefile,
     21 	- evaluate some variables
     22 	- switch .CURDIR back
     23 that is used by crunchgen to build eg, installer media or /rescue.
     24 
     25 
     26 
     27 TODO:
     28 	- some yacc issue -- libc, libipsec and libpcap need "make" run
     29 	  to generate headers properly, otherwise it complains about
     30 	  no way to get to foo.h.  this is currently hacked by putting
     31 	  a rule "foo.h: foo.c" in the (generated) makefiles
     32 	- there's an ugly hack to make libpam build correctly again the
     33 	  right libc.  ld.elf_so has a similar (but less ugly hack)
     34 	- not sure that /usr/lib/{i386,sparc}{,/i18n} are created 
     35 	  properly yet
     36 
     37 Future work
     38 
     39 Ideally this should be able to handle any number of compat targets.
     40 Perhaps using a "force MAKEOBJDIR, and run-run make" solution will
     41 work, but my initial attempts got me no where.  If not, perhaps
     42 build-makefiles could be expanded to be used at run-time in such
     43 a per-compat target obj-dir.
     44