Commit Graph

3039 Commits

Author SHA1 Message Date
ru
a7e4f3c2ed SUBDIR is initially empty. 2002-06-05 07:00:41 +00:00
ru
58882df7c3 Canonicalize. 2002-06-05 06:59:10 +00:00
ru
ad7019cf41 Back out addition of a plus sign.
DPADD and LDADD belong to individual makefiles.
2002-06-05 06:58:33 +00:00
sobomax
bb87166edf Collapse lib and tar dirs into single top-level directory.
Suggested by:   obrien
2002-06-04 21:16:18 +00:00
obrien
89416e5cf1 Remove GNU awk. 2002-06-04 21:14:34 +00:00
obrien
67a820c341 Install the i386 MMX headers, and IA-64 intrinsics functions.
Requested by:	peter
2002-06-04 20:00:29 +00:00
obrien
f12e3f2bd1 We don't need this library any more. 2002-06-04 19:45:09 +00:00
sobomax
2e5908cc89 Don't forget to include ../Makefile.inc. 2002-06-04 11:28:09 +00:00
sobomax
99ead316c2 Add bmake bits for building GNU tar from src/contrib/tar. 2002-06-04 11:14:49 +00:00
sobomax
0108b10757 Send our ancienv GNU tar into Attic.
Suggested by:	ps
2002-06-04 11:14:06 +00:00
mike
d8cc828c9a Use POSIX macros for wait(2)-style status information instead of the
deprecated 4.2/4.3BSD wait union.  Fix some nearby pid_t/int
confusion.
2002-06-03 23:13:11 +00:00
ru
7502c92ec5 Do not overwrite mm locale files. 2002-06-03 15:12:42 +00:00
obrien
b394b8299c Turn on the math function stub stubs.
Submitted by:	Martin Blapp <mb@imp.ch>
I believe OK with:	peter
2002-06-02 17:49:08 +00:00
ru
a5cbe66f37 The new bsd.incs.mk is powerful enough to handle this wrinkle. 2002-05-31 11:45:34 +00:00
wollman
9d6080ed99 Add used includes of <stdlib.h>. 2002-05-30 19:49:21 +00:00
alfred
1d781d526a Check for defined(__i386__) instead of just defined(i386) since the compiler
will be updated to only define(__i386__) for ANSI cleanliness.
2002-05-30 07:00:42 +00:00
obrien
4162a6d541 Tweak so that .o's are written into src/contrib/gcc 2002-05-29 22:26:05 +00:00
obrien
b89bbee44d Build docs not out of libobc++.295 2002-05-29 21:14:48 +00:00
peter
2723f411f9 Put on peril sensitive sunglasses and turn C++ stuff back on. 2002-05-29 00:48:14 +00:00
peter
61220912c5 Add some build glue for libstdc++. I'm not a C++ person, but this seems
to work at least for the non-hairy stuff.  The main wrinkle here is that
a whole mess of include files get installed and under different names.
An earlier version of this built a shadow include tree first in the obj
directory, but this depends on the 'make includes' functionality.

More tweaking is certainly going to be needed.
2002-05-29 00:45:51 +00:00
obrien
aa218bddd8 I missed the setting of PREFIX_INCLUDE_DIR when I visually santity checked
the output from a autoconfig run.
2002-05-27 17:48:28 +00:00
bde
c96f5bc184 phsyical -> physical
Submitted by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2002-05-27 13:08:08 +00:00
obrien
729e503ffb Alpha has crtfastmath also. 2002-05-26 17:16:21 +00:00
obrien
2ebd4caac3 Rev 1.12 broke make all' w/o a previous make depends'. 2002-05-26 17:09:31 +00:00
markm
2bb817f70c Trim out this subdir; nothing has been made in here for _ages_. 2002-05-25 21:11:13 +00:00
ache
74a747af83 Remove /usr/share/perl/man 2002-05-24 03:21:11 +00:00
markm
f9be27fadd Remove ptx. It is not used anywhere in the base system, has not been
maintained for years and is very old code. If there is any need for
it, I suspect that ports would be a better place.

No objection from:	current@freebsd.org
2002-05-21 09:20:34 +00:00
gad
e904c77681 Change parts of the source code to make it closer to style(9), mainly
changing indentation and some comments.  Main goal is not perfect style,
but just to reduce differences with NetBSD.  The object code is exactly
the same after this change as before it (except for assert() statements
which have moved).

Reviewed by:	/sbin/md5 on i386
Obtained from:	NetBSD
2002-05-21 00:44:18 +00:00
obrien
f9c5ef03b2 This is only WARNS=0 clean now. 2002-05-19 18:25:41 +00:00
markm
f175d6cdc0 remove perl scripts from the build. 2002-05-18 19:47:57 +00:00
obrien
2c6771604f This is enough to get thru a cross-build. 2002-05-18 18:27:09 +00:00
obrien
562bc08939 The AMD x86-64 Hammer bits. 2002-05-18 11:57:01 +00:00
obrien
897019a581 Fix the sparc64 build and make the LIB1ASMSRC handling more robust. 2002-05-18 09:46:12 +00:00
phk
1d13b5edc2 Improve chances that we correctly compile LIB1ASMSRC on all architectures.
sparc64 looked for the nonexistent sparc64/lb1spc.asm file instead
of the sparc/lb1spc.asm file.

arm probably looked for arm/arm/lib1funcs.asm instead of arm/lib1funcs.asm
ia64 probably looked for ia64/ia64/lib1funcs.asm instead of ia64/lib1funcs.asm

i386 and alpha don't seen to use the LIB1ASMSRC.
2002-05-18 09:21:42 +00:00
obrien
219a10b61f Segregate MD weirdness a little bit more. Improve cross buildability. 2002-05-18 04:59:57 +00:00
obrien
c656279c18 Style sync with other platforms. 2002-05-18 04:50:32 +00:00
obrien
2e68e3ea20 Use a more API denoting way to handle what is in libc and what isn't. 2002-05-18 04:49:44 +00:00
obrien
b17976f194 Don't build gperf. 2002-05-18 00:20:01 +00:00
obrien
e04dec43b9 Don't depend on gperf. 2002-05-18 00:18:00 +00:00
peter
8061a4a9c1 Move LIB1ASMFUNCS from the SYMS variable and explicitly add it to OBJS
later.  Otherwise make will try and build the supposedly assembler .o
files from libgcc2.c - which does not work too well (the .o's have no
content)

Reviewed by:	obrien
2002-05-17 08:59:13 +00:00
peter
19f5a6df2a Put on peril-sensitive sunglasses and risk touching gcc related build glue
again.  Try and deal with platforms that provide their own crtbegin/end asm
files (ia64 for example).  crtstuff.c does not actually work on ia64 since
libgcc.a doesn't have a few key support functions when built on ia64 so it
is compulsory to use crtbegin.asm and crtend.asm.

Reviewed by:	obrien
2002-05-17 07:55:08 +00:00
obrien
fded097c79 Remove some WIP bits that I didn't fully clean out before merging to HEAD. 2002-05-17 06:35:44 +00:00
ru
7eb6320da9 Back out revision 1.30 change.
cc1plus can apparently be built if you happen to have
/usr/bin/gperf, or set CXX to point to a C++ compiler
that can build gperf(1) in the bootstrap-tools stage
of buildworld.
2002-05-17 05:41:47 +00:00
obrien
34d9ef6ac3 Post rev 1.39, the PowerPC specific additions to OBJS was getting lost. 2002-05-17 04:18:33 +00:00
obrien
022c693d0e Update to Binutils 2.12.0 and stick to the native emulation for now.
This lets us get on the with the task at hand -- porting FreeBSD.
We can get fancy later on.
2002-05-17 03:43:47 +00:00
obrien
f75ec02743 Update to Binutils 2.12.0 release. 2002-05-17 03:43:09 +00:00
obrien
89fa60dfa2 Update to Binutils 2.12.0 and stick to the native emulation for now.
This lets us get on the with the task at hand -- porting FreeBSD.
We can get fancy later on.
2002-05-17 03:10:33 +00:00
obrien
c29c96590a bsd.lib.mk now understands what to do with .asm files.
So we can refer to these files by their real name vs. playing tricks
renaming them during the build.
2002-05-17 03:08:15 +00:00
obrien
b515019119 GCC 3.1 on PowerPC also has the crtsavres C Run Time file. 2002-05-17 03:04:47 +00:00
obrien
9cd3180274 Do not cut `docs' out of the build with NO_CXX.
There are no longer GNU C++ specific info files, and it was a bug with Gcc
2.95 that NO_CXX would cause the C and CPP info files to not be installed.
2002-05-17 03:00:33 +00:00
ru
f73111e0b8 MD_EXEC_PREFIX doesn't work for the cross-arch compiler.
The change also makes the `cc -print-search-dirs' output
sane (the pre-3.1 way) in the non-cross case.

Draft reviewed by:	obrien
2002-05-16 15:22:58 +00:00
ru
047114be39 Make it possible to build a cross compiler for alpha,
ia64 and sparc64 on systems that do not have atoll(3).
The "cross" here doesn't necessarily mean cross-arch.
2002-05-16 15:18:13 +00:00
markm
bdb30c1326 Remove the perl build. Farewell, old friend. 2002-05-16 09:57:11 +00:00
markm
4ce635974b Don't build perl. 2002-05-16 08:59:52 +00:00
obrien
4921665c1b Add x86-64 bits. 2002-05-15 22:40:50 +00:00
obrien
e15fa19c47 The IA-64 config needs to know that we are using GNU ld & as.
Submitted by:	peter
2002-05-15 21:59:46 +00:00
ru
fac60d5c35 Make sure to not yet build the GNU C++, but still allow
for the C++ progs to be built with e.g. an old compiler,
CXX=/usr/bin/c++, for the time being.
2002-05-15 16:29:45 +00:00
obrien
21545cc623 We won't be doing FreeBSD-NT (NTBSD?, BSDNT?) anytime soon.
Same for any m68k platform.
2002-05-15 09:11:11 +00:00
obrien
f76dc2c368 We aren't quite ready to switch emulations and loose the
override ELF_DYNAMIC_INTERPRETER requirement.

Has a good eye:	jmallet
2002-05-15 09:01:03 +00:00
obrien
fcb492bd78 We won't be doing FreeBSD/m68k or FreeBSD/rs6k anytime soon.
(not to mention these bits are still at the 2.9.1 level)
2002-05-15 08:33:41 +00:00
mp
ef747a208c Make our version tag unique due to our local changes.
PR:		19733
Submitted by:	sheldonh
MFC after:	3 days
2002-05-14 18:17:59 +00:00
obrien
04a6505f97 Quote {CC} so ccache can be used. 2002-05-14 01:00:25 +00:00
ru
065008fc7b Fixed CLEANFILES after bsd.lib.mk sweep. 2002-05-13 15:28:00 +00:00
ru
d48ffaae86 Mark all internal libraries with INTERNALLIB. 2002-05-13 11:24:03 +00:00
ru
e68122e850 Removed now unused INTERNALSTATICLIB.
INTERNALLIB now implies NOPIC and NOPROFILE.
Removed gratuitous NOMAN.
2002-05-13 11:09:07 +00:00
ru
e7d136a7c9 Major cleanup of bsd.lib.mk.
Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB.
INTERNALLIB now means to build static library only and don't install
anything.  Added a NOINSTALLLIB knob for libpam/modules.  To not
build any library at all, just do not set LIB.
2002-05-13 10:53:24 +00:00
obrien
fa82c2e296 Restore some of the implementation from the Bmake gcc 2.95 bits.
In the end, I can do things more like the previous Bmake bits than was
apparent in the middle of the gcc31 WIP.
2002-05-13 03:27:03 +00:00
obrien
f96ca6b3b2 I was finally able to repeat the -j breakage on one of my machines. Fix it.
I borrowed some ideas from Ruslan, and made the style match cc_tools/Makefile
2002-05-13 01:54:26 +00:00
ru
5a8215b5a4 NOLIB is gone; put INTERNALLIB back for now. 2002-05-12 16:35:34 +00:00
ru
8e77093d64 Added new bsd.incs.mk which handles installing of header files
via INCS.  Implemented INCSLINKS (equivalent to SYMLINKS) to
handle symlinking include files.  Allow for multiple groups of
include files to be installed, with the powerful INCSGROUPS knob.
Documentation to follow.

Added standard `includes' and `incsinstall' targets, use them
in Makefile.inc1.  Headers from the following makefiles were
not installed before (during `includes' in Makefile.inc1):

	kerberos5/lib/libtelnet/Makefile
	lib/libbz2/Makefile
	lib/libdevinfo/Makefile
	lib/libform/Makefile
	lib/libisc/Makefile
	lib/libmenu/Makefile
	lib/libmilter/Makefile
	lib/libpanel/Makefile

Replaced all `beforeinstall' targets for installing includes
with the INCS stuff.

Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS,
and for compatibility with NetBSD.  Similarly for INCOWN, INCGRP,
and INCMODE.

Consistently use INCLUDEDIR instead of /usr/include.

gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes
were only lightly tested due to the missing contrib/libstdc++-v3.
I fully tested the pre-WIP_GCC31 version of this patch with the
contrib/libstdc++.295 stuff.

These changes have been tested on i386 with the -DNO_WERROR "make
world" and "make release".
2002-05-12 16:01:00 +00:00
obrien
75e5860322 Properly build lb1spc.asm on Sparc64. 2002-05-12 14:05:58 +00:00
obrien
3006bf3990 There is no more NOLIB. 2002-05-12 13:49:14 +00:00
obrien
62bec7fd30 I was not strict enough with my ordering of things to satisfy make(1) nieve
symbol evaluation which causes it to be very sensitive to macro ordering.
2002-05-12 12:44:04 +00:00
obrien
23379e9a5e Tidy up the cleanfiles. 2002-05-12 12:06:19 +00:00
obrien
ac699ac491 Fixes for building a.out bits.
Submitted by:	bde
2002-05-12 12:01:12 +00:00
obrien
9d6dc33e66 Sorry, I did not mean to turn collect2 back on yet. 2002-05-11 04:51:45 +00:00
obrien
55f52d3d8a Revert rev 1.3 -- I tested using the wrong build compiler. 2002-05-11 00:15:45 +00:00
obrien
91b373bef2 Actually we don't need any special YACC'ing here. The ones known to
Bmake are fine.
2002-05-10 23:20:54 +00:00
obrien
dd1e5b8cf2 BWK awk appears to work for world builds just fine now. We want to make
sparc64 the same as the other platforms -- so do it by moving the other
platforms toward the sparc64.
2002-05-10 20:36:21 +00:00
obrien
73eed8c90b Touching the sjlj setting on IA-64 makes things not build.
Submitted by:	peter
2002-05-10 17:42:19 +00:00
obrien
b86ac12ab5 Build compiler on all platforms. 2002-05-10 17:30:42 +00:00
obrien
907baa468c Doh! Add IA-64 to our target list. 2002-05-10 17:23:04 +00:00
obrien
17b961417f Gather up the stragglers that depends on genrtl.h. This is -j10 safe now. 2002-05-10 10:21:19 +00:00
obrien
7fa1c0407e This was *very* -j unsafe. Add a dependency on the common generated
headers to mostly make it -j1 safe.
2002-05-10 10:14:53 +00:00
obrien
b9bc5e1b43 [Ab]use LDFLAGS rather than CFLAGS.
BDE tells me POSIX pretends `ld' as a directly callable entity does not exist.
2002-05-10 09:32:39 +00:00
obrien
7b2f8d7601 Bmake bits for Gcc 3.1.
Partially made possible by:	Wilko.Bulte@compaq.com
2002-05-10 08:54:50 +00:00
obrien
925ae29af1 Gcc 3.1 now offers both a C99 and a K&R traditional C preprocessor.
This is the ISO C99 one.
2002-05-10 02:46:01 +00:00
obrien
1733e96bb3 Turn off groff and gperf -- they will not compile with the in-tree Gcc 3.1. 2002-05-10 00:50:43 +00:00
obrien
87f328f10e All platforms should be on equal footing now -- no special handling for
Sparc64 and IA-64.
2002-05-10 00:49:55 +00:00
obrien
d74d705613 Gcc 3.1 now offers both a C99 and a K&R traditional C preprocessor.
This is the traditional one.
2002-05-09 00:52:09 +00:00
obrien
bc6ba12ed0 libstdc++ version 3 (Gcc 3.1 is a consumer) uses the typical `config.h'. 2002-05-07 01:03:51 +00:00
obrien
27451ae887 GCC's libstdc++ version 3 has the "libgcc" like bits (start up / terminate
code, `new' handler, exception handling, etc.) split out into libsupc++.
2002-05-06 22:07:26 +00:00
obrien
b988998e26 Add support for using the profiled versions of the C++ (and related) libs. 2002-05-01 19:19:22 +00:00
gad
1568d5ff24 Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it gets
our patch to look a little more like NetBSD's, and has the nice characteristic
that the object code is exactly the same after the change as before it (even in
patch.c and pch.c, which have pesky 'assert' statements in them).

Reviewed by:	/sbin/md5 on i386, alpha, sparc64
MFC after:	3 days
2002-04-28 01:33:45 +00:00
gad
a137e4b8ef Add FreeBSD id's to these files, in advance of a separate update.
MFC after:	3 days
2002-04-28 01:26:40 +00:00
eric
4c5284a3e9 Move ID tag. 2002-04-27 19:57:22 +00:00
gad
364c153110 Modify our 'patch' utility to recognize the
\ No newline at end of file
line that some versions of diff print out if the last line of the two files
are different, and one of the two files does not have a newline character
on that last line.

This change is still somewhat under discussion in -arch and -standards, but I
want to commit it to -current today so I'd have the chance to MFC it to -stable
before the code freeze for 4.6-release (which would be May 1st).

Note: the related change to 'diff' (so it might *generate* that line) is NOT
expected to be included in 4.6-release.  We can debate that change later.

Obtained from:	NetBSD (1.13 of basesrc/usr.bin/patch/pch.c, by kristerw)
MFC after:	4 days
2002-04-26 19:01:19 +00:00
ru
99be26b20c Milestone #1 in cross-arch make releases.
Do not install games and profiled libraries to the ${CHROOTDIR}
with the initial installworld.

Eliminate the need in the second installworld.  For that, make sure
_everything_ is built in the "world" environment, using the right
tool chain.

Added SUBDIR_OVERRIDE helper stuff to Makefile.inc1.  Split the
buildworld process into stages, and skip some stages when
SUBDIR_OVERRIDE is set (used to build crypto, krb4, and krb5
dists).

Added NO_MAKEDB_RUN knob to Makefile.inc1 to avoid running
makewhatis(1) at the end of installworld (used when making crypto,
krb4, and krb5 dists).

In release/scripts/doFS.sh, ensure that the correct boot blocks are
used.

Moved the creation of the "crypto" dist from release.5 to
release.2.

In release.3 and doMFSKERN, build kernels in the "world"
environment.  KERNELS now means "additional" kernels, GENERIC is
always built.

Ensure we build crunched binaries in the "world" environment.
Obfuscate release/Makefile some more (WMAKEENV) to achieve this.

Inline createBOOTMFS target.

Use already built GENERIC kernel modules to augment mfsfd's
/stand/modules.  GC doMODULES as such.

Assorted fixes:

Get rid of the "afterdistribute" target by moving the single use
of it from sys/Makefile to etc/Makefile's "distribute".

Makefile.inc1: apparently "etc" no longer needs to be last for
"distribute" to succeed.

gnu/usr.bin/perl/library/Makefile.inc: do not override the
"install" and "distribute" targets, do it the "canonical" way.

release/scripts/{man,cat}pages-make.sh: make sure Perl manpages and
catpages appear in the right dists.  Note that because Perl does
not respect the MANBUILDCAT (and NOMAN), this results in a loss of
/usr/share/perl/man/cat* empty directories.  This will be fixed
soon.

Turn MAKE_KERBEROS4 into a plain boolean variable (if it is set it
means "make KerberosIV"), as documented in the make.conf(5)
manpage.  Most of the userland makefiles did not test it for "YES"
anyway.

XXX Should specialized kerberized libpam versions be included into
the krb4 and krb5 dists?  (libpam.a would be incorrect anyway if
both krb4 and krb5 dists were choosen.)

Make sure "games" dist is made before "catpages", otherwise games
catpages settle in the wrong dist.

Fast build machine provided by: Igor Kucherenko <kivvy@sunbay.com>
2002-04-26 17:55:27 +00:00
eric
aadaaca5b9 When a compound section name is specified, search for pages that actually
match the requested section. Previously, the section would be trimmed and
every entry matching the page name would be displayed.

Sponsored by:	Apple
2002-04-24 20:07:06 +00:00
obrien
256aa60f28 Don't use "GCCDIR" as the multiple inclusion protector. Subdir Makefiles
may want to override GCCDIR and this gets in the way.
2002-04-23 00:10:18 +00:00
markm
6962a37803 Remove my MAINTAINER= from here, as it is in src/MAINTAINER 2002-04-21 08:03:25 +00:00
markm
3539b97a37 Tidy up some of the configs; s/gcc/cc/ to make the choice of C compiler
more generic. Fix paths for things like scripts (fix perldoc). Tweak
externally passed macros.
2002-04-21 08:01:31 +00:00
obrien
e7007d1009 It is easier for me to debug with -I's at the rear. 2002-04-20 01:27:28 +00:00
ru
44eaf0382b Replaced exists() tests with two equivalent defined().
LIBDIR is defined in bsd.own.mk but sys.mk no longer
includes bsd.own.mk as of revision 1.60.
2002-04-18 07:01:35 +00:00
ru
5436d67ec0 *sigh* Really fix a typo.
Submitted by:	bde
2002-04-16 06:34:59 +00:00
obrien
d08f2b3e07 Fix typo. 2002-04-15 21:57:40 +00:00
obrien
2907ed66a5 Turn off collect2.
collect2 was added based on the need of -frepo.  However, -frepo is currently
broken on -CURRENT (Gcc 2.95.4 20020320 [FreeBSD] / ld 2.12.0 [FreeBSD]
2002-04-10).  It is also broken on RELENG_4 (Gcc 2.95.3 20010315 / ld
2.11.2 20010719), so there is no need to MFC collect2 there yet.  I have
a feeling the brokeness is due to the wide difference between the libiberty
bits of Gcc 2.95 and the later ld.

Testing by:	fjoe
2002-04-15 03:15:40 +00:00
ache
11250ba171 Re-add sort spammed in v1.62 2002-04-13 05:49:33 +00:00
eric
2603e6f505 Fix compilation in the non-FreeBSD case.
Sponsored by:	Apple
2002-04-13 01:17:21 +00:00
obrien
47efac5bca Updated to a 10-April-2002 2.12 branch snapshot.
This fixes serious problems in ld's symbol handling.
2002-04-12 19:59:42 +00:00
obrien
691fb467a5 Use PTRACE_ARG3_TYPE of caddr_t.
Obtained from:	gdb 5.2
2002-04-11 20:42:13 +00:00
obrien
81ac88b67a In the cross case we need to provide TARGET_MACHINE. 2002-04-11 18:40:37 +00:00
ru
1e42a324ea Revert the last change and mark the program as PROG_CXX. 2002-04-11 11:06:06 +00:00
ru
49839f7c5a Use the new PROG_CXX knob. 2002-04-11 11:02:41 +00:00
obrien
4271e36f56 In the cross case we need to provide TARGET_MACHINE. 2002-04-10 02:20:48 +00:00
obrien
0068a2f556 Change YACCing.
Submited by:	ru
2002-04-10 01:48:47 +00:00
obrien
e94c4a342e Back out most of revision 1.59. 2002-04-10 00:18:14 +00:00
ru
bbddf07ee8 -ltermcap is spelled -lncurses nowadays. 2002-04-09 13:04:31 +00:00
peter
39d80bde8c move gperf to NO_GXX section, it works fine on ia64. It just needs a
c++ compiler.
2002-04-08 22:58:52 +00:00
peter
3a29e186b5 Unbreak world (missing .else)
Submitted by:   fenner
Pointy hat to:  obrien
2002-04-08 22:56:28 +00:00
ache
38e6b91ff2 Get decimal point from locale 2002-04-08 22:00:28 +00:00
ache
ff78de4dfd Connect sort 2002-04-08 20:46:44 +00:00
obrien
d79022e641 GCC and Gperf do not work on ia64 or sparc64 yet.
Also do not try to compile Groff if NO_CXX is set.
2002-04-08 20:38:56 +00:00
obrien
f084232367 Some things don't compile on ia64 and sparc64 yet. 2002-04-08 20:36:39 +00:00
obrien
f9485f9f6d Fine! I cannot freaking take the bikeshed any more.
These binaries will be static, peroid.
2002-04-08 18:48:38 +00:00
ache
b4d96b8690 Revive GNU sort 2002-04-08 12:12:07 +00:00
ru
a25fc19573 Add .Fx entries for upcoming 4.6 and forthcoming 4.7.
Requested by:	asmodai
2002-04-08 11:20:50 +00:00
peter
0bd251c9f6 Add -lstdc++ to the link args for these C++ tools so that they can be
compiled with gcc-3.1.  Somebody thought it was a good idea to move
the implementation of new and delete from libgcc to libstdc++.  This
change doesn't harm the current compiler in the tree.
2002-04-07 02:40:55 +00:00
peter
ef2fe30f34 Bandaid for LP64 machines where 'warning: cast to pointer from different
sized integer' bites.  The various malloc functions return pointers,
but without any prototype/declarations visible to callers, the compiler
expects them to return int.
2002-04-07 01:44:24 +00:00
obrien
3c23c3f0f8 Break some things used by the front-ends from Makefile.inc that cannot
be used build-wide for GCC 3.1.
2002-04-06 23:16:26 +00:00
obrien
a32c0068e9 Build and install collect2. This is needed for some C++ programs. 2002-04-06 23:12:46 +00:00
obrien
1934a8f429 Break some things out of Makefile.inc that cannot be used build-wide
for GCC 3.1.
2002-04-06 22:37:19 +00:00
obrien
24b4a789c8 Expand the toolchain a little bit.
Requested by:	fjoe (collect2), des (protoize)
2002-04-06 09:35:06 +00:00
obrien
d5ef5257fd A little more reorg. 2002-04-05 10:23:19 +00:00
obrien
22f43b6669 Style reorg. Also spell -fpic as determined by bsd.lib.mk. 2002-04-05 09:12:25 +00:00
obrien
d0cf246923 Style reorg. 2002-04-05 08:53:35 +00:00
obrien
110cae7915 Minor reorg. 2002-04-04 19:36:33 +00:00
obrien
724cc3b5fb Minor style tweak. 2002-04-04 19:26:13 +00:00
des
2486250464 Document new categories.
Submitted by:	Hiten Pandya <hiten@uk.FreeBSD.org>
MFC after:	3 days
2002-04-04 18:31:36 +00:00
obrien
ace3b78c37 Remove some local cruft that snuck in yesterday. 2002-04-04 18:24:56 +00:00
obrien
5bf13ac819 Make the sed line a little bit more clear (it will get messier later). 2002-04-04 01:25:26 +00:00
obrien
0ce23671f3 Set NOSHARED conditionally. 2002-04-04 00:50:14 +00:00
obrien
cbe6bf4aef Clean up the YACCing. I don't know why we cannot leave the .y's as .y's.
So lets see if doing so causes anyone trouble.
Also use make(1)'s assistance in using the right file.  It knows the
dependency, so lets just ask it.
2002-04-04 00:26:20 +00:00
obrien
a4eb3368ee Remove duplicate objc-parse.h. While we are at it, just spell it correctly
as c-parse.h since that is how the consumers spell it.
2002-04-04 00:14:58 +00:00
obrien
1d1e316c3b Get rid of GCC_ARCH, and just use plain TARGET_ARCH.
We got rid of the MIPS le/be stuff that needed this a long time ago.
2002-04-04 00:11:00 +00:00
obrien
95301f6d75 Remove some 1996 GCC 2.6.3 cruft for building a shared cc_int lib. 2002-04-03 03:18:15 +00:00
ru
b054be8ccc Restore the correct CLEANFILES that got damaged in rev. 1.15. 2002-03-30 17:37:43 +00:00
obrien
cb71b78314 Allow to build with GCC 3.1. 2002-03-30 10:04:50 +00:00
markm
f795448daf Boot this into the Attic. We now have (Net)BSD sort. 2002-03-29 09:11:38 +00:00
obrien
4cc7807a53 Make it easier to change the native emulation.
Tested on:	alpha, i386, sparc64
2002-03-29 00:41:01 +00:00
joe
e84e090937 Install libusbhid, and use it instead of libusb.
MFC after:	6 days
2002-03-28 18:44:25 +00:00
obrien
3172894403 Enhance GDB's abillity WRT stack traces where signal handlers are involved.
Correct backtrace was made more complex when the new signal trampoline
was introduced to support more than 32 signals, while keeping a modified
version of the old signal trampoline.

The 'where' command will now show:

	#2  <signal handler called>

where appropiate.

Submitted by:	Tor.Egge@fast.no
2002-03-27 04:55:43 +00:00
ru
aa17688e62 Upgrade to GNU texinfo 4.1. 2002-03-25 13:20:03 +00:00
markm
9e07428c00 Remove GNU sort from the build. BSD sort is coming. 2002-03-24 16:01:17 +00:00
obrien
429b699718 GDB 4.18 does not use the mmalloc library by default. So GC a little. 2002-03-23 17:15:49 +00:00
obrien
7b13e1a31f Fix setting of CLEANFILES. 2002-03-23 04:52:02 +00:00
brian
d0710b7887 Update perl's man path for 5.6.1 2002-03-23 00:04:15 +00:00
ru
c1d0895054 Revision 1.45 of gnu/usr.bin/man/man.c obviated the need to link
manpages in machine-specific subdirectories (like man4/i386/) to
"../".  This change didn't propagate here resulting in a loss of
whatis(1) database entries.  Fix this.

Reviewed by:	tobez
MFC after:	1 week
2002-03-22 09:59:16 +00:00
obrien
b8eecd49f1 Properly get the version number after the 2.95.4 upgrade. 2002-03-21 01:34:56 +00:00
obrien
75823ba5e9 Update to Binutils 2.12.0 release. 2002-03-20 23:05:19 +00:00
des
3254d0c629 Add www category 2002-03-20 18:40:40 +00:00
des
f8193e13f4 Rename the (not really new but so far unused) sparc category to sparc64. 2002-03-19 00:39:55 +00:00
des
69255410eb Uncomment the powerpc category. It maps to the freebsd-ppc mailing list. 2002-03-19 00:28:25 +00:00
des
99fa260a59 Add a "standards" category at mike@'s request. 2002-03-19 00:22:03 +00:00
des
e465c500dc Add an ia64 category; we'll need it sooner or later. Also add a commented-
out entry for powerpc; I'll enable it when the powerpc port gets its own
mailing list.
2002-03-18 23:56:04 +00:00
ru
72af0c6b1c FreeBSD 4.x bootstrapping aid (no eaccess(2) syscall).
Reviewed by:	markm
2002-03-18 10:10:55 +00:00
markm
9af084befe Update for Perl 5.6.1. 2002-03-16 21:36:08 +00:00
obrien
b87fa6cd9f GCC 3.1's cpp no longer searches for includes using hints from #line. 2002-03-16 20:45:01 +00:00
obrien
06be99434a Fix unaligned access in the GDB binary on Alpha.
Submitted by:	gallatin
2002-03-16 19:33:23 +00:00
markm
5a4c19eb25 Allow the use of the NO_PERL as well as NOPERL. The latter is
going to go.
2002-03-16 14:53:47 +00:00
obrien
f541d1fd5d Minor style nit. 2002-03-15 07:45:42 +00:00
obrien
21285a8992 Update for binutils_2_12_anoncvs_20020221. 2002-03-15 07:45:18 +00:00
obrien
d17c375a37 Uggg!! LD ME HARDER!!
Rev 1.2 changed the default emulation from ``elf64_sparc'' to ``elf32_sparc''
and I never noticed it after my review of rev 1.1.  Backing the change of
the default emulation out, and Wa-la!, I can now build a native [and usable]
binutils.  WTF, the "-m elf64_sparc" parameter handed to `ld' by `gcc'
wasn't DTRT is beyond me.
2002-03-15 07:42:47 +00:00
obrien
388edc8d0e Tune WARNS for Alpha. 2002-03-14 02:24:25 +00:00
obrien
544ba349d7 Support linking with -z combreloc (combine and sort reloc sections) and with
--shared -z combreloc (shared library, combine & sort relocs)

Submitted by:		peter
Bribed by:		peter
Fixes:			IA-64, Kaffe, and QT
Doesn't fix ports by:	kris
Tested on:		make(1) release w/docproj
Desired for:		5.0-DP#1
Approved by:		murray
Seconded by:		jhb
2002-03-13 18:26:59 +00:00
obrien
fd8c97a8ae Turn up WARNS as high as possible.
Tested by:	gcc31, gcc32, /usr/bin/cc
2002-03-13 05:14:31 +00:00
charnier
a141f6cef8 RETURN VALUES is for sections 2, 3 and 9, but here in section 1 man page,
DIAGNOSTICS should be used instead.

Reviewed by:	wosch
2002-03-12 20:00:52 +00:00
obrien
ca953d181c Wrong spelling of PIC.
Submitted by:	jake
2002-03-11 02:50:03 +00:00
wosch
47fd2ff625 apropos(1) manual page doesn't tell that keyword can be regular expression
PR:	gnu/31685
Submitted by: Andrey Simonenko <simon@simon.org.ua>
2002-03-09 20:00:08 +00:00
dd
1810d4436f The -a switch didn't cause send-pr to attach the specified file if the
PR template was obtained from the environment variable $PF_FORM.

PR:		34831
Submitted by:	Mike Makonnen <mike_makonnen@yahoo.com>
2002-03-09 04:29:00 +00:00
obrien
6d2028d82c On the sparc64 platform we install this as "gawk" as Gawk is currently
borked on the sparc64.  We are using BWK's AWK at the moment.
2002-03-05 19:40:25 +00:00
obrien
3d908fc43e Move the creation of the insn-*.c files from cc_tools to cc_int.
This gets rid of a cross build problem we have because we build
everything in cc_tools during the `make build-tools' (or `make depend')
stage.
2002-03-02 08:53:36 +00:00
obrien
ab1a8c15d3 Use libgcc_p.a when -pg is in effect.
I am committing this here rather than in gcc/config/freebsd.h because the
profiled libgcc only exists with the native system compiler.  It is not
created by a stock FSF build and we will never be able to get these bits
committed to the FSF CVS repo.  Thus this is very much a FreeBSD "native"
issue.
2002-02-24 06:05:22 +00:00
deischen
acf7bf0651 Sync this up to recent changes to our (userland) thread structure. 2002-02-23 19:28:01 +00:00
obrien
593bbbafff Update for binutils_2_12_anoncvs_20020221. 2002-02-22 18:49:37 +00:00
obrien
1337420d6d Update for binutils_2_12_anoncvs_20020221. 2002-02-22 05:35:18 +00:00
obrien
21a028870a Allow for better control over the GCC front-end when building a cross
compiler.

* Undo the diking out of cross compiler logic from gcc.c rev 1.16.
* Add the `CROSS_STARTFILE_PREFIX' knob.
* Add our own definition of `STANDARD_INCLUDE_DIR'.  This should have been
  included in freebsd-native.h rev 1.5.
* Minimize a little bit more, things we dike out in the FREEBSD_NATIVE case.

Submitted by:	ru & obrien
2002-02-20 19:41:54 +00:00
obrien
08fe6c6f65 Clean up the style a little bit. 2002-02-20 03:57:21 +00:00
obrien
3d12d8b4e0 Do not define a 'MD_EXEC_PREFIX'. It is not needed, not used in the
cross case, and just ends up causing "/usr/libexec" being added to the
library search path.

Also remove misleading comment about 'STANDARD_EXEC_PREFIX'.  It is needed
if one does not set 'MD_EXEC_PREFIX'.

Submitted by:	ru
2002-02-20 03:10:54 +00:00
gallatin
6e42915ce0 Fix kgdb in the face of the last round of KSE commits.
The alpha world may actually build now..
2002-02-18 14:13:59 +00:00
des
55ab985f97 Add some verbiage to the comments at the top of the PR template:
- point at the FDP article rather than GNU's send-pr documentation
 - warn the user that PRs are public information and will be published in
   mailing lists and on the web
 - suggest that the user contact security-officer@ directly if the report
   concerns sensitive security issues.
2002-02-18 09:13:44 +00:00
deischen
5b7eaba6b4 Don't rely on <sys/signal.h> to include <sys/ucontext.h>. 2002-02-17 17:19:14 +00:00
markm
b93e1ffda9 Nice set of fixes to use SCRIPT instead of PROG, thus fixing up
a lot of nasty STRIP= problems. This has the added side effect
if neatening up some leaf makefiles very nicely.

Submitted by:	ru
2002-02-10 19:48:19 +00:00
obrien
b049ad73bb Update this to 5.006. 2002-02-10 12:37:52 +00:00
ru
e868d6008e FreeBSD 4.1 bootstrapping aid (setproctitle(3) is in -lutil).
This backs out (sort of) delta 1.18 to perl/miniperl/Makefile.
Update to the ld(1) comment by peter in this revision:

ld(1) built as part of the cross-tools stage of buildworld has
been fixed to look for dynamic dependencies in the right place,
${WORLDTMP}/usr/lib, effective binutils/ld/Makefile,v 1.20.

Approved by:	markm
2002-02-08 13:09:08 +00:00
ru
ef4e4ffaf5 Fixed RCSLOCALID buffer overflow (by making an overflow condition fatal).
Spotted by:	John Johnson <bio.metrix@gte.net>
2002-02-08 11:57:43 +00:00
peter
0f169baf94 Add missing & 2002-02-08 04:17:33 +00:00
peter
138a40d3a9 Make this part compile and try and use the p_threads tailq. It might work
but I am not sure, I haven't been able to compile the rest of gdb yet.
2002-02-08 03:19:56 +00:00
mike
ffc3fd787d Add -i option (SUSv3) to patch(1). This allows one to specify a
patch file on command line instead of stdin.

Submitted by:	Joseph Mallett <jmallett@xMach.org>
MFC after:	1 month
2002-02-08 02:05:32 +00:00
obrien
1185bbbe22 We do not need to use -I- any longer.
Presumably the issue was with arparse.[ch].  Those are now in FREEBSD-Xlist
and FREEBSD-deletelist.  So we do not import the Bison produced files that
was causing the problem.

Submitted by:	ru
2002-02-07 17:35:49 +00:00
sobomax
f9da96a603 When unpacking compressed archive check exit status of the child (gzip or bzip)
and exit with error code if that status != 0.

PR:		30876
Submitted by:	Simon Gerraty <sig@juniper.net>
2002-02-07 10:38:16 +00:00
obrien
bf2052d6e6 Set the SCRIPTDIR to be rooted at TOOLS_PREFIX rather than DESTDIR.
(the two may be different (ie, build vs. runtime))
Allow ldscript's SEARCH_DIR do be rooted somewhere other than `/'.
(in this case at TOOLS_PREFIX)

These changes are most helpful during `make buildworld' so that the shared
libs built in the middle of `make buildworld' are used vs. the ones in
/usr/lib on the build machine.

Submitted by:	ru
2002-02-07 01:37:53 +00:00
obrien
538530632d I missed adding a file that was needed on the Alpha (and will be needed
on x86_64 also.

Submitted by:	ru
2002-02-04 17:06:30 +00:00
obrien
9218a06b8d Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 19:12:51 +00:00
obrien
15abd58ffb Special case the foreign platform vs. the native one. 2002-01-28 19:08:29 +00:00
obrien
645dcb361e Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 19:07:31 +00:00
obrien
4cb9f72d5a Support cross building from 64-bit machines. 2002-01-28 19:00:11 +00:00
obrien
1415a3fe38 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 18:58:59 +00:00
obrien
bda09c9be3 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-28 18:52:26 +00:00
obrien
98b0025e1a Change the way the version strings are handled. 2002-01-27 22:47:22 +00:00
obrien
139e3710e9 Upgrade to a Binutils 2.12.0 snapshot. 2002-01-27 13:10:59 +00:00
obrien
aa7eaf5820 Style fix. 2002-01-27 13:09:36 +00:00
obrien
eab1731005 Add files new with 2.12.0. 2002-01-27 13:09:08 +00:00
obrien
971403ea9d Style fixes. 2002-01-27 13:04:21 +00:00
obrien
306c98c20e Add files new with 2.12.0. 2002-01-27 13:03:58 +00:00
obrien
856bb3e0e5 We are now at a 2.12.0 pre-release snap version. 2002-01-27 13:02:31 +00:00
nectar
2f0a9c3223 Use mktemp(1) when creating temporary files. 2002-01-25 15:02:01 +00:00
ru
8b8a3f72e1 Reincarnate SETUID code in man(1), not compiled in by default.
The code will be fixed for all known security vulnerabilities,
and a make.conf(5) knob (ENABLE_SUID_MAN) will be provided for
those who still want it installed setuid for whatever reasons.
2002-01-22 15:15:38 +00:00
ru
9f388e03eb GC spurious -m in the usage(). 2002-01-18 16:08:29 +00:00
ru
eab37fec1c Do not install man(1) setuid ``man''.
The catpaging and setuidness features of man(1) combined make
it vulnerable to a number of security attacks.  Specifically,
it was possible to overwrite system catpages with arbitrarily
contents by either setting up a symlink to a directory holding
system catpages, or by writing custom -mdoc or -man groff(1)
macro packages and setting up GROFF_TMAC_PATH in environment
to point to them.  (See PR below for details).

This means man(1) can no longer create system catpages on a
regular user's behalf.  (It is still able to if the user has
write permissions to the directory holding catpages, e.g.,
user's own manpages, or if the running user is ``root''.)

To create and install catpages during ``make world'', please
set MANBUILDCAT=YES in /etc/make.conf.  To rebuild catpages
on a weekly basis, please set weekly_catman_enable="YES" in
/etc/periodic.conf.

PR:		bin/32791
2002-01-15 14:11:05 +00:00
ru
c7c90ed283 Now that we have the original BSD man(1)'s ${MACHINE} feature
back (as of man.c,v 1.45), change the meaning of the -m option
from poorly documented and badly coded "alternate system" to a
much more useful "different architecture for the same system".

PR:		docs/31261
2002-01-11 15:12:00 +00:00
ru
29e48bbdb1 The -pthread -> -lc_r change didn't reach here. 2002-01-11 11:42:16 +00:00
ru
47badfb51e Forgot to commit these two files for the recent .Dt change. 2002-01-11 11:30:14 +00:00
cjc
be0d92b3fe Fix what was a pointless conditional. Use $GCC_EXEC_PREFIX if
/etc/gnats does not exist.

PR:		gnu/33682
Submitted by:	Alan Eldridge <ports@geeksrus.net>
2002-01-10 07:43:38 +00:00
jhb
8b68f7b474 Back out the previous revision for now. Instead, the current sparc64
Makefile changes are in the sparc64 p4 tree.
2002-01-07 19:27:50 +00:00
jhb
f6202329cb Don't build csu or libgcc on sparc64 for the time being. 2002-01-03 19:57:35 +00:00
ru
ada84723dc MFV: FreeBSD 4.4, FreeBSD 4.5, NetBSD 1.6, POSIX.1-2001. 2001-12-24 08:59:48 +00:00
ru
f5d12934ae Install files via FILES. 2001-12-17 16:45:09 +00:00
ru
d5844d0aa7 FILES support for bsd.prog.mk. See bsd.README for details.
Stolen from:	NetBSD
2001-12-17 13:59:35 +00:00
ru
8448242b8c Add .Lb entry for -lpam. 2001-12-17 12:12:17 +00:00
jhb
5f3d865116 Catch up to the globaldata -> pcpu changes. 2001-12-12 21:15:30 +00:00
peter
3620d9355b *** empty log message *** 2001-12-11 07:04:48 +00:00
peter
bd17fc8e87 Recognize numeric digits inside $id$ tags, eg: $XFree86$
PR: 30666
Submitted by: Tony Finch <dot@dotat.at>
2001-12-10 20:44:31 +00:00
ru
58fa078ecc December 6th -- the IEEE Standards Board approves the Austin Group
Specification as IEEE Std 1003.1-2001.  Yay!
2001-12-08 19:02:36 +00:00
obrien
ed01e4f95a Upgrade to Binutils 2.11.2. 2001-12-06 03:10:42 +00:00
ru
ac65a69a07 Fixed memory leak in dialog_gauge(3).
PR:		gnu/32260
Submitted by:	Igor Pokrovsky <tiamat@telegraph.spb.ru>
MFC after:	3 days
2001-11-29 07:42:13 +00:00
ru
435a0e420d CFLAGS is not suitable for `optimize' thing; it spams Config.pm
with -nostdinc which breaks Perl ports building.

This change will be re-applied if BDE agrees on having COPTFLAGS
in userland.

PR:		bin/31877
2001-11-27 16:28:26 +00:00
ru
9513b7b884 Add .Lb entry for -lpam.
Requested by:	des
2001-11-27 15:08:42 +00:00
ru
dd93aac34e Removed glibc specific stuff.
PR:		docs/31431
2001-11-27 08:23:38 +00:00
bde
02ea932904 Fixed style bugs (tab corruption) on every changed line in previous commit. 2001-11-11 02:16:52 +00:00
ache
69c29a7350 Back out switching from libreadline to libedit:
1) It is capabilities degradation: f.e. libedit can't process ~/.inputrc files
2) It have no sense to try to un-GNU GNU program.
2001-11-09 17:09:42 +00:00
dfr
54fbd648e0 Clone the alpha config for ia64. 2001-11-03 16:06:05 +00:00
obrien
fe9c04c20a Bring Gawk back. There just isn't any other POSIX compliant AWK out there.
The biggest thing missing from Bell-Labs AWK is the character class regexes.
2001-11-02 23:48:32 +00:00
obrien
d43a09fdca Update to Gawk 3.1.0. 2001-11-02 23:46:57 +00:00
obrien
605e178402 Bring Gawk back. There just isn't any other POSIX compliant AWK out there.
The biggest thing missing from Bell-Labs AWK is the character class regexes.
2001-11-02 23:43:07 +00:00
obrien
12ebf793e6 -v must have a space between it and the variable.
Submitted by:	David Wolfskill <david@catwhisker.org>
                (did I mention he should be a committer? :-) )
2001-11-01 07:11:10 +00:00
markm
c9f86e399b tip(1) can do cu(1). We don't need this anymore. 2001-10-30 19:36:57 +00:00
obrien
487c9c7580 Switch to the One True AWK from Bell-Labs, away from GNU AWK. 2001-10-30 08:56:50 +00:00
ru
cb17330b06 There are users of FreeBSD 4.5 already. 2001-10-26 17:01:15 +00:00
ru
6d68fd3977 It's safe to assume that ${.OBJDIR} == ${.CURDIR} in the
NOOBJ-hinted Makefiles.
2001-10-24 09:16:23 +00:00