Clean with Linux ELF
Emmanuel HOCDET
hocdet@ecoledoc.ibp.fr
Fri, 27 Oct 95 23:31:46 +0100
hello,
Thanks for the great compiler.
I've modified the new distribution of clean for linux to run it with
the ELF distribution.
I make it available for the one who are interested.
manu.
===============================================================
To use Clean 1.0 with ELF distribution of linux (Slakware 3.0.0)
you must:
* install the libaout package
* patch clm with the command:
> cd bin
> ./patch_bin clm ASSEMBLER /usr/i486-linuxaout/bin/as
> ./patch_bin clm CRT /usr/i486-linuxaout/lib/crt0.o
* and add the option "-sl aout" when you compile with clm,
where aout.lo is:
---------------------aout.lo------------------------------
#
# aout.lo
# ====
#
# Link Options file to link Clean applications
# with the ELF distribution (Slakware 3.0.0)
# % clm -sl aout <main module>
# Link option files consist of two parts separated by an
# '=' sign.
#
# The first section consists of options that are passed on
# to the linker by clm.
-m i386linux # to link with in a.out format
# The equal sign separates the two sections
=
----------------------------------------------------------
To use iolib:
* install gccaout and oldlibs6 package
* install a.out version of libolgx and libxview in /usr/i486-linuxaout/lib
(don't forget to run ldconfig)
* edit iolib/xv/Makefile and do the following modification
CC = gcc
to
CC = gcc -b i486-linuxaout
* edit iolib/xv/x.lo.in and add
-m i386linux # to link with in a.out format
-L/usr/i486-linuxaout/lib # to find the good directory
#-L$OPENWINLIB
#-L/usr/X11/lib # for SlackWare
-----------------------------------------------------------------
Emmanuel Hocdet DEA Semantique, Preuves et Programmation
hocdet@ecoledoc.ibp.fr Universite Paris 7