Re: Trying to compile 1.2.13

Dr. Werner Fink (werner@suse.de)
Thu, 15 Feb 1996 16:01:49 +0100


> Date: Wed, 14 Feb 1996 18:35:43 -0800 (PST)
> From: "Arthur D. Jerijian" <jerijian@seas.ucla.edu>
>
>
>
> On Thu, 15 Feb 1996, Tony Nugent wrote:
>
> [ deleted ]
>
> > What amazes me is that appears that Slackware maintains the ELF patch
> > for the 1.2.13 kernel. (!!!)
> >
> > We need a 1.2.14 kernel. This is only one reason why. There are
> > people like myself who end up applying a collection of patches to it
> > if we want to compile it fresh.
>
> I agree. We need to allow 1.2.13 to be compiled as ELF under GCC
> 2.7.0 onward. GCC 2.7.2 dies while trying to compile include/asm/io.h.
> The only problem with having Linux 1.2.14 is that Linus is release
> version 2.0 as soon as all the bugs have been ironed out of 1.3.x.
>
> > There's a couple of us gathering together all the possible patches to
> > 1.2.13, including some essential bug fixes and other optional things
> > like the kswap patch (and how to use it in an ELF kernel).
> >
> > More on this in another post.
> >
> > Meanwhile, if anyone has patches that they use for 1.2.13 and would
> > like to put them into a collection that will be made generally
> > available on a web site, then email me at tony@sctnugen.ppp.gu.edu.au
> > (or else the message will get lost in list email at this account).
>
> I think this is a great idea. However, I don't have that
> include/asm/io.h patch with me right now.
>
> > Cheers
> > Tony

Try this small patch:
-------------------------------------------------------------------
--- /usr/src/linux/Makefile Wed Aug 16 20:53:26 1995
+++ linux/Makefile Fri Dec 8 16:19:49 1995
@@ -12,9 +12,9 @@
TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)

-AS =as
-LD =ld
-HOSTCC =gcc -I$(TOPDIR)/include
-CC =gcc -D__KERNEL__ -I$(TOPDIR)/include
+AS =/usr/i486-linuxaout/bin/as
+LD =ld -m i386linux
+HOSTCC =gcc -b i486-linuxaout -I$(TOPDIR)/include
+CC =gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include
MAKE =make
CPP =$(CC) -E
AR =ar
-------------------------------------------------------------------

works for me under ELF :-)

Ciao

Werner