1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/gnu/usr.bin
Ruslan Ermilov 4448c79e47 Fix cross-building, etc:
1.  To cross-build, one now needs to set TARGET_ARCH, and not the
    MACHINE_ARCH.  MACHINE_ARCH should never be changed manually!

2.  Initialize DESTDIR= explicitly for bootstrap-tools, build-tools,
    and cross-tools stages.  This fixes broken header and library
    dependencies problem.  We build them in the host environment,
    and obviously want them to depend on host headers and libraries.
    The problem with broken header dependencies for bootstrap-tools
    and cross-tools was already partially solved (see BOOTSTRAPPING
    tests in bsd.prog.mk and bsd.lib.mk), but it was still there for
    build-tools if the user ran "make world DESTDIR=/foo".  Also,
    for all of these stages, the library dependencies were broken
    because of how bsd.libnames.mk define DPADD members.

    We still provide a glue to install bootstrap- and cross-tools
    under the ${WORLDTMP}.

    Removed PATH overrides for bootstrap-, build-, and cross-tools
    stages.  There is just no reason why we would need to override
    it, and the hacks to clean up the ${WORLDTMP} in the -DNOCLEAN
    case are no longer needed with fixes from this step.

    That is, we now never use ${WORLDTMP} headers and libraries,
    and we don't use any ${WORLDTMP} installed binaries during
    these stages.  Again, these stages depend solely on the host
    environment, including compiler, headers, and libraries.

3.  Moved "miniperl" back from cross-tools (it has nothing to do
    with a cross-compiler) to build-tools where it belongs.  The
    change from step 1 let to do this.  Also, to make this work,
    build-tools targets of "cc_tools" and "miniperl" were modified
    to call "depend".  Here follow the detailed explanations.

    There are two categories of build tools, for now.  In the first
    category there are "cc_tools" and "miniperl".  They occupy the
    whole (sub)directory, and nothing needs to be done in this
    subdirectory later during the "all" stage.  They are also
    constructed using system makefiles.  We must build the .depend
    early in the build-tools stage because:

    1)  They use (and depend on) the host environment.

    2)  If we don't do this in build-tools, the "depend" stage of
        buildworld will do this for us; wrong library and header
        dependencies will be recorded (DESTDIR=${WORLDTMP}) and,
        what's worse, the "all" stage may then clobber the
        build-architecture format tools (that we built in the
        build-tools stage) with the target-architecture format
        ones, breaking cross build.

    In the second category there are all other build-tools.  They
    share their directory with the "main" module that needs them
    in the "all" stage, and they don't show up themselves in the
    .depend file.  The portion of this fix was already committed
    in gnu/usr.bin/cc/cc_tools/Makefile,v 1.52.

4.  "libperl" is no longer a build tool, and "miniperl" is the
    stand-alone application.  I had to make this change because
    build-tools and "all" stages share the same object directory.
    Without this change, if we cross compile, libperl.a is first
    built for the build architecture during the build-tools stage
    (for the purposes of immediate linkage with "miniperl").
    Later on, the "all" stage sees this library as up-to-date,
    and doesn't rebuild it.  The effect is that the wrong format
    static libperl library is installed with installworld.

5.  Fixed "includes" to install secure/lib/libtelnet headers if
    required.

Reviewed by:	bde
2001-09-29 13:17:54 +00:00
..
as Implement .previous (swap section back to the last section) 2001-09-04 23:04:48 +00:00
awk Fixed style bugs in rev.1.4, including clobbering of the "Don't generate 2001-08-31 11:15:49 +00:00
bc Update for bc 1.06 2001-02-26 07:23:27 +00:00
binutils Unconditionally use basename.c source vs. only doing this if the libc we 2001-09-26 20:51:51 +00:00
cc We need to build ``.depend'' early in the "build-tools" for the GCC 2001-09-27 17:14:33 +00:00
cpio MAN[1-9] -> MAN. 2001-03-27 14:59:06 +00:00
cvs Use some slightly less horrible make magic for doing the version stuff. 2001-08-10 11:24:23 +00:00
dc
dialog MAN[1-9] -> MAN. 2001-03-27 14:59:06 +00:00
diff
diff3
gdb/doc Upgrade for readline 4.2 2001-04-11 04:27:10 +00:00
gperf
grep In FreeBSD, -Z is reserved for zgrep(1), and only 2001-09-19 07:22:30 +00:00
groff The .Rv macro support zero and more than one arguments. 2001-08-15 08:25:55 +00:00
gzip beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
ld mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
man Fixed some of style bugs. 2001-09-12 10:04:42 +00:00
patch Restore vendor CVS keywords; eliminate troff(1) warnings. 2001-07-12 13:13:37 +00:00
perl Fix cross-building, etc: 2001-09-29 13:17:54 +00:00
ptx
rcs mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
sdiff
send-pr Note that submitted patches are assumed to be under the same license as 2001-08-20 12:52:59 +00:00
sort mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
tar msg_out is already initialized 2001-08-13 21:55:41 +00:00
texinfo MAN[1-9] -> MAN. 2001-03-27 14:59:06 +00:00
Makefile Turn cvs back on. It seems that there's nothing outright broken, but there 2001-08-13 19:04:26 +00:00
Makefile.inc