Commit Graph

1767 Commits

Author SHA1 Message Date
jb
2c3408bd6d Make the build tools static to avoid trying to use the shared loader
before it is installed.

This upsets Bruce because the host boostrap build forces tools to be
static anyway. He says I'm abusing NOTOOLS in src/Makefile by using
it to do a aout->elf transition build. One day I'll find a place to
install host tools like these to allow a true cross build.
1998-08-20 21:45:46 +00:00
jb
3d49984384 Change the aux field type to long instead of int so that it is large
enough to hold a man-sized pointer.
1998-08-20 21:39:28 +00:00
jb
8182f2c073 Install binutils tools in /usr/libexec/elf like on i386 so that objformat
can be used to select them. The purpose of this is not necessarily to
allow another host format, but to allow us to use the objformat trickery
for cross compilation.
1998-08-18 06:51:08 +00:00
markm
055e7770c8 Fix LIBDIR so kerberised CVS will work. 1998-08-15 17:26:36 +00:00
thepish
e66006ff45 PR: 7488
Submitted by:	lhecking@nmrc.ucc.ie
merge from stable
1998-08-05 03:44:46 +00:00
bde
950c1ed802 Fixed printf format warnings for non-errors. This change is null unless
a system header defines a macro __printf0like() using the new printf0
format attribute.  uucp's internal ulog() function isn't actually
printf-like but uucp normally declares it as such.
1998-08-02 14:35:35 +00:00
nectar
084c8c6627 fixed: tar will extract file even if -C command fails
tar now exits with new exit code EX_BADDIR after a failed chdir()
in name_next(), name_match(), and name_from_list().
PR:		bin/2394
Submitted by:	Satoshi Asami <asami@freebsd.org>
1998-07-27 18:40:09 +00:00
jkoshy
284d56c0e6 Add Xref to ldd(1).
PR: 7397
1998-07-26 04:16:04 +00:00
phk
2e8d660a6e During compilation of a Fortran program f2c/f77 will spew the
name of entry points, functions, subroutines, and program to
stderr error.  The enclosed patches do 3 things:

     (1) Silenced the output to stderr.
     (2) Added a -v option to f2c and f77.  This will turn on a verbose
         mode, and dumps quite a bit of stuff to stderr.
     (3) Updated the f2c man page.

PR:		7369
Submitted by:	Steven G. Kargl <kargl@troutmask.apl.washington.edu>
1998-07-24 07:13:57 +00:00
des
1716a6b1dd For every directory in ${PATH} that ends with "/bin", look for a
corresponding directory ending in "/man".

PR:		7215
Submitted by:	Wayne Scott <wscott@ichips.intel.com>
1998-07-09 12:39:08 +00:00
jkoshy
55e824de37 fix description of `-C' option to match behaviour in the sources:
`-C' can be used both when creating and extracting files.  Further,
a `-C' inside the argument list causes a `chdir()' to the named
directory before the subsequent filename arguments to be interpreted.

Eg:- "tar -cf a+b.tar -C /a . -C /b ."

PR: 7221
1998-07-09 04:28:19 +00:00
bde
fd69522643 Use a different hack for building libgcc2: `XCC= ${CC}' instead of
`XCC= <relative cc> -B<path to relative cc1> ...'.  This is equivalent
when cc and cc1, etc. have just been bootstrapped by `make world'.
The relative versions normally won't work if the target system is
not binary compatible.  Bootstrapping different versions of gcc
without going through `make world' is slightly more broken than
before.

Uniformized macro names (P1OBJS -> LIB1POBJS, etc.).

Don't give full paths to sources.
1998-07-08 00:45:50 +00:00
bde
39ff18089a Use the installed versions of cc, cc1 and cpp for building underscore.
They have been bootstrapped by `make world' since long before the
hacks here were cloned from ../libgcc/Makefile.  The versions just
built in "../*" normally won't work if the target system is not binary
compatible.

Don't use OBJS to defeat `make depend'; just put generated sources in
SRCS.

Added temporary files to CLEANFILES.
1998-07-08 00:14:15 +00:00
bde
d43626f954 Use the installed version of perl for `make install'. It is now
bootstrapped by `make world'.  The version just built in ".."
normally won't work if the target system is not binary compatible.
1998-07-07 23:44:43 +00:00
bde
6703231167 Use the installed version of perl for `make depend'. It is now
bootstrapped by `make world'.  The version just built in ".."
normally won't work if the target system is not binary compatible.
The bootstrapped version has a better chance of working.

This makes the fixes and bugs in the previous 3 commits irrelevant.
Rev.1.11 was just wrong and rev.1.10 became unnecessary when
perl/perl was added to build-tools.  Don't expect to build perl/usub
without using `make world' or equivalent if you don't have perl
installed.
1998-07-07 23:32:39 +00:00
bde
6983ae1644 Added a `build-tools' target for internal tools. 1998-07-07 01:51:18 +00:00
bde
755fd03ef8 Fixed printf format errors. 1998-06-30 20:48:45 +00:00
bde
53d1b984ce Fixed printf format errors. 1998-06-30 20:14:13 +00:00
peter
0a382ec9f5 Add -DFREEBSD_AOUT to CFLAGS, to ensure that <link.h> gives us the correct
definitions, even when compiling the a.out ld under elf.
1998-06-12 15:50:57 +00:00
jkoshy
0d7d76d982 Spelling corrections.
PR: 6868
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-06 05:50:53 +00:00
steve
260fa64a35 Fix a bunch of spelling errors.
PR:		6856
Submitted by:	Josh Gilliam <josh@quick.net>
1998-06-04 21:06:07 +00:00
bde
14b705d009 Don't use beforedepend or give dependencies on generated headers explicitly.
Just put generated headers in SRCS.
1998-06-04 06:50:58 +00:00
bde
65791359e8 Removed superfluous beforedepends. Their files were already in SRCS. 1998-06-04 06:38:17 +00:00
bde
e9928f4610 Don't use beforedepend; just put generated headers in SRCS. ldgram.h
was already put in SRCS by the general yacc rules.  Putting ldemul-list.h
in SRCS fixes races in `make -jN' when .depend hasn't been made.

Don't forget to clean ldemul-list.h.
1998-06-04 06:26:23 +00:00
bde
350f093ed2 Removed special rules for lex- and yacc- generated files. The general
rules work identically, except that they actually work if the yacc-
generated header somehow becomes out of date.
1998-06-04 01:09:28 +00:00
peter
04e2e080ec Missing DPADD's. 1998-06-03 18:57:59 +00:00
peter
5a5e9be6f6 Add missing DPADD's. 1998-06-03 18:01:04 +00:00
peter
48e458debf These files were moved elsewhere (sbin/ldconfig, libexec/rtld-aout,
usr.bin/ldd) as they stand alone and are under bsd-style license.
1998-06-01 14:11:28 +00:00
peter
4de470154b Look for files in their new locations. 1998-06-01 14:08:01 +00:00
jkh
10859a0eb5 Also check for Satoshi's TMPDIR location of perl when looking around for it.
Clean up an .ifdef which was probably doing the wrong thing in the case
where user wants to override PERL.
Submitted by:	jhay
1998-05-29 06:16:44 +00:00
sos
bc60c8025e ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
sos
ea8b97a093 ELF preparation step 1:
Move our old a.out utils to /usr/libexec/aout.
Enable binutils and put the utils in /usr/libexec/elf
Enable objformat, a little helper program that calls the right
utils based on /etc/objformat and $OBJFORMAT.

This will enable the ELF generating tools.
Remember that this is only step one, the system is still compiled
and run in a.out format ONLY.

Problem left to solve: The BSD manpages wins over the GNU equivalents
as the are installed last. We need to distinguish between the manpages
somehow...
1998-05-25 17:34:42 +00:00
eivind
631316592f Don't blow away parts of the sourcetree on a 'make clean'. This was
only harmful for building from a read-only filesystem - the parts
blown away were old rm'ed directories.
1998-05-24 21:51:50 +00:00
jb
a5e834b886 Change the order of the include paths so that the architecture specific
directory is searched before the generic one. You can guess what was
happening.. all the world's assumed to be 32-bit.
1998-05-15 06:42:37 +00:00
jb
2325f0cac2 perl now works on alpha.
This just leaves gdb to be configured for alpha.
1998-05-12 23:09:36 +00:00
jb
d8437c4302 This code casts double -> int -> char *. Ugh. Take a punt and change the
int to a long so that no bits are thrown away on alpha and hope for
the best.
1998-05-12 23:07:07 +00:00
jb
b36a8f56fb Change a cast of long * to time_t * in a call to time(); 1998-05-12 23:03:50 +00:00
jb
0955429cc8 Allow the makefile to choose the perl executable to run h2ph rather
than relying on the #!/usr/bin/perl in the first line of the script.
1998-05-12 23:02:14 +00:00
jb
857a750462 If perl exists in OBJDIR it has just been built; if it exists in
CURDIR it has been built without an obj directory; however if it is in
neither of those places, we expect it to be in DESTDIR.

Yes Bruce, I know this is broken because the host is not supposed to be
the same as the target, but we need to get the hosted build working
properly first before even attempting a cross compiled operating
system build. That will need to concept of TOOLSDIR or something that
can be mapped to DESTDIR in the case of a hosted build and set to the
installed tools in a cross compiled build. Later, later, later!
1998-05-12 22:51:34 +00:00
jb
d7b2905312 Change .if to .elif to prevent the current directory path search for a
perl executable from overriding the object directory path search where
perl is most likely to be. Most people haven't seen this because it
defaulted to /usr/bin/perl which might be OK as a fallback, but when
bootstrapping a new version (or the *first* version on alpha), we don't
really want to use /usr/bin/perl.
1998-05-12 22:32:03 +00:00
jb
ad6cba6f81 awk and groff (et al) now work on alpha as the result of library
fixes.
1998-05-12 21:07:45 +00:00
bde
400020b8c9 Don't attempt to read process context from the kernel when (the
kernel's) curproc is null.  This fixes endless recursion in
xfer_umem() for attempts to read from user addresses, in particular
for attempts to read %fs and %gs from the pcb for `info reg'.
1998-05-12 16:49:13 +00:00
jb
1538b84478 The yacc makefile changes don't seem to know when to generate the
header file and when not to, so for the time being make sure the
sucker gets generated up front.
1998-05-11 09:33:55 +00:00
jb
bd175fde7d Add CROSS_TARGETS to the list of GASES to build. We end up with a separate
gas for each target format. So for m68k targets that means several
gases. I wanted a m68k gas for VxWorks which uses aout in sun3 big
endian format, cross compiled on i386 under FreeBSD using libraries
supplied by DEC and intended by them for cross compilation on Alpha
under OSF/1. And it actually works!
1998-05-11 09:31:17 +00:00
jb
56f89354f8 Make a path absolute. 1998-05-11 09:26:39 +00:00
bde
16b46848f9 Simplified by using new yacc rules and by not generating y.tab.h. 1998-05-08 06:41:06 +00:00
jb
f692a926a1 Fix the path. 1998-05-05 12:33:21 +00:00
jb
4f6564ed3b Specify an absolute include path.
Backout the previous commit in favour of the Makefile.inc added to
the parent directory.
1998-05-05 10:32:47 +00:00
jb
9ba533fa7b One of those silently included files that just about guarantee that
nobody has any idea how something like BINDIR gets defined.
1998-05-05 10:27:39 +00:00
jb
2e38ab65f6 The BINDIR definition is an extra directory level away, so include it
explicitly.
1998-05-05 08:57:11 +00:00