The NetBSD Project

CVS log for src/share/mk/bsd.sys.mk

[BACK] Up to [cvs.NetBSD.org] / src / share / mk

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.316 / (download) - annotate - [select for diffs], Tue Feb 13 16:15:59 2024 UTC (2 months ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.315: +2 -2 lines
Diff to previous 1.315 (colored) to selected 1.280 (colored)

Allow overriding the language standard to something newer.

Revision 1.315 / (download) - annotate - [select for diffs], Mon Nov 6 22:35:48 2023 UTC (5 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.314: +5 -1 lines
Diff to previous 1.314 (colored) to selected 1.280 (colored)

Add -fmacro-prefix-map set like -fdebug-prefix-map (Jan-Benedict Glaw)

See:
https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html\
    #index-fmacro-prefix-map
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html\
    #index-fdebug-prefix-map

Revision 1.314 / (download) - annotate - [select for diffs], Sat Jun 3 21:24:57 2023 UTC (10 months, 1 week ago) by lukem
Branch: MAIN
Changes since 1.313: +2 -2 lines
Diff to previous 1.313 (colored) to selected 1.280 (colored)

bsd.*.mk: move MKSTRIPSYM default to bsd.own.mk

Add default for MKSTRIPSYM=yes to to bsd.own.mk _MKVARS.no.
Test ${MKSTRIPSYM} != "no".

Revision 1.313 / (download) - annotate - [select for diffs], Sat Apr 29 20:31:59 2023 UTC (11 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.312: +4 -2 lines
Diff to previous 1.312 (colored) to selected 1.280 (colored)

Like everywhere else make sure DESTDIR is not empty before using it.
Otherwise if it is empty before we were adding an optargless -d, which
ended up using the next argument (a -Isomething) after the recent change
to xlint.c related to sysroot. This broke using the native tools make
with the cross toolchain (for example typing make in /usr/src/bin/ls)
to build and install a single program.

Revision 1.312 / (download) - annotate - [select for diffs], Sun Jan 22 15:20:01 2023 UTC (14 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.311: +2 -2 lines
Diff to previous 1.311 (colored) to selected 1.280 (colored)

lint: repurpose the '-d' option to specify DESTDIR

Previously, passing '-nostdinc -isystem $dir' only searched the given
directory but not any compiler-specific directories.

Discovered by fontconfig, which includes <stdatomic.h> from C11, which
lives in /usr/include/gcc-10 instead of /usr/include.

Change the preprocessor options to '--sysroot' instead, to align them
with how the compiler is invoked using build.sh.

Revision 1.311 / (download) - annotate - [select for diffs], Fri Jan 6 15:48:29 2023 UTC (15 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.310: +2 -5 lines
Diff to previous 1.310 (colored) to selected 1.280 (colored)

Now that the default page size is 4K again for x86_64 with the binutils
change to default to -z separate-code, remove the previous hack.

Revision 1.310 / (download) - annotate - [select for diffs], Fri Dec 30 02:01:42 2022 UTC (15 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.309: +5 -2 lines
Diff to previous 1.309 (colored) to selected 1.280 (colored)

PR/57147: Andreas Gustafsson: Work around binutils 2.38+ relro
issue with +2M size in every binary by setting max-page-size. This
is the simplest fix; fixing this properly requires a lot more
surgery, and upstream seems uncertain how to fix it properly.

Revision 1.309 / (download) - annotate - [select for diffs], Tue Dec 14 16:22:07 2021 UTC (2 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
Changes since 1.308: +3 -3 lines
Diff to previous 1.308 (colored) to selected 1.280 (colored)

Pass W with IDU for lint and deps.

Revision 1.308 / (download) - annotate - [select for diffs], Mon Nov 1 10:05:19 2021 UTC (2 years, 5 months ago) by nia
Branch: MAIN
Changes since 1.307: +3 -2 lines
Diff to previous 1.307 (colored) to selected 1.280 (colored)

mk: Add support for conditional compilation of parts of the tree with
partial RELRO when MKRELRO=full is set.

Currently the X server needs to be compiled with only partial RELRO
due to the way certain (but not all - it seems wsfb works with full
RELRO) graphics driver modules are loaded.

Revision 1.307 / (download) - annotate - [select for diffs], Sat Sep 11 21:30:46 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.306: +2 -2 lines
Diff to previous 1.306 (colored) to selected 1.280 (colored)

sysinst/partitions.h: fix typos comments, also fix same typos in other files.

Revision 1.306 / (download) - annotate - [select for diffs], Mon Apr 26 00:38:23 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.305: +1 -3 lines
Diff to previous 1.305 (colored) to selected 1.280 (colored)

Revert the AFLAGS change since it affects kernels.

Revision 1.305 / (download) - annotate - [select for diffs], Sun Apr 25 14:32:20 2021 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.304: +5 -4 lines
Diff to previous 1.304 (colored) to selected 1.280 (colored)

- since we are using regex already, shorten by merging arm and mips entries
- add a MACHINE_MIPS64 macro shorthand
- pass -m{soft,hard}-float to the assembler when we are passing it to the
  compiler

Revision 1.304 / (download) - annotate - [select for diffs], Mon Nov 9 16:15:05 2020 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.303: +9 -17 lines
Diff to previous 1.303 (colored) to selected 1.280 (colored)

- make the CTFCONVERT command lines consistent and concise by putting all
  the implementation stuff in a variable CTFCONVERT_RUN
- introduce an OBJECT_TARGET variable that contains the output object file
- when we need to run ctfconvert, go through an intermediate ${.TARGET}.o
  file, instead of writing directly to ${.TARGET} and then overwriting
  ${.TARGET} with ctfconvert. This avoids build failures after a build
  got interrupted (the "partially built from C" scourge).

Revision 1.303 / (download) - annotate - [select for diffs], Sat Sep 5 13:38:43 2020 UTC (3 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.302: +2 -2 lines
Diff to previous 1.302 (colored) to selected 1.280 (colored)

disable -Wabi for GCC 9.

Revision 1.302 / (download) - annotate - [select for diffs], Fri Jul 3 16:12:16 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.301: +2 -2 lines
Diff to previous 1.301 (colored) to selected 1.280 (colored)

Enable trace-cmp.

Revision 1.301 / (download) - annotate - [select for diffs], Fri May 15 19:07:01 2020 UTC (3 years, 11 months ago) by maxv
Branch: MAIN
Changes since 1.300: +2 -2 lines
Diff to previous 1.300 (colored) to selected 1.280 (colored)

Don't add KCOV instrumentation on top of the KUBSAN instrumentation,
this is useless and too bloated.

Revision 1.300 / (download) - annotate - [select for diffs], Sat Apr 4 07:03:57 2020 UTC (4 years ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Changes since 1.299: +2 -4 lines
Diff to previous 1.299 (colored) to selected 1.280 (colored)

KCOV doesn't depend on specificdata and cpu_intr_p() anymore, so drop
references.

Revision 1.299 / (download) - annotate - [select for diffs], Sat Feb 8 07:07:06 2020 UTC (4 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp
Changes since 1.298: +1 -9 lines
Diff to previous 1.298 (colored) to selected 1.280 (colored)

Retire KLEAK.

KLEAK was a nice feature and served its purpose; it allowed us to detect
dozens of info leaks on the kernel->userland boundary, and thanks to it we
tackled a good part of the infoleak problem 1.5 years ago.

Nowadays however, we have kMSan, which can detect uninitialized memory in
the kernel. kMSan supersedes KLEAK: it can detect what KLEAK was able to
detect, but in addition, (1) it operates in all of the kernel and not just
the kernel->userland boundary, (2) it requires no user interaction, and (3)
it is deterministic and not statistical.

That makes kMSan the feature of choice to detect info leaks nowadays;
people interested in detecting info leaks should boot a kMSan kernel and
just wait for the magic to happen.

KLEAK was a good ride, and a fun project, but now is time for it to go.

Discussed with several people, including Thomas Barabosch.

Revision 1.298 / (download) - annotate - [select for diffs], Fri Dec 20 04:04:25 2019 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.297: +1 -2 lines
Diff to previous 1.297 (colored) to selected 1.280 (colored)

move MV to sys.mk because it is used there. Pointed out by joerg@

Revision 1.297 / (download) - annotate - [select for diffs], Sun Dec 1 17:25:47 2019 UTC (4 years, 4 months ago) by kamil
Branch: MAIN
Changes since 1.296: +3 -2 lines
Diff to previous 1.296 (colored) to selected 1.280 (colored)

Disable KCOV instrumentation in x86_machdep.c

This allows to use cpu_intr_p() directly inside KCOV.

Revision 1.296 / (download) - annotate - [select for diffs], Fri Nov 15 09:44:44 2019 UTC (4 years, 5 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.295: +2 -2 lines
Diff to previous 1.295 (colored) to selected 1.280 (colored)

Make kMSan compatible with KCOV. With kMSan we are forced to stay with the
fsanitize flag on subr_kcov.c, which means that kMSan will instrument KCOV.
We add a bunch of __nomsan attributes to reduce this instrumentation, but
it does not remove it completely. That's fine.

Revision 1.295 / (download) - annotate - [select for diffs], Tue Nov 5 20:19:17 2019 UTC (4 years, 5 months ago) by maxv
Branch: MAIN
Changes since 1.294: +3 -2 lines
Diff to previous 1.294 (colored) to selected 1.280 (colored)

Add Kernel Concurrency Sanitizer (kCSan) support. This sanitizer allows us
to detect race conditions at runtime. It is a variation of TSan that is
easy to implement and more suited to kernel internals, albeit theoretically
less precise than TSan's happens-before.

We do basically two things:

 - On every KCSAN_NACCESSES (=2000) memory accesses, we create a cell
   describing the access, and delay the calling CPU (10ms).

 - On all memory accesses, we verify if the memory we're reading/writing
   is referenced in a cell already.

The combination of the two means that, if for example cpu0 does a read that
is selected and cpu1 does a write at the same address, kCSan will fire,
because cpu1's write collides with cpu0's read cell.

The coverage of the instrumentation is the same as that of kASan. Also, the
code is organized in a way similar to kASan, so it is easy to add support
for more architectures than amd64. kCSan is compatible with KCOV.

Reviewed by Kamil.

Revision 1.294 / (download) - annotate - [select for diffs], Tue Oct 15 15:05:00 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.293: +3 -3 lines
Diff to previous 1.293 (colored) to selected 1.280 (colored)

Allow individual lex and yacc sources to override/extend LFLAGS and YFLAGS
respectively.

Revision 1.293 / (download) - annotate - [select for diffs], Sat Oct 5 18:37:39 2019 UTC (4 years, 6 months ago) by uwe
Branch: MAIN
Changes since 1.292: +5 -1 lines
Diff to previous 1.292 (colored) to selected 1.280 (colored)

Don't add -Wabi to CXXFLAGS for gcc 8.  It warns about differences
from the most up-to-date ABI, which in gcc 8 is used by default.
XXX: This needs a better condition.

Revision 1.292 / (download) - annotate - [select for diffs], Wed May 22 08:31:25 2019 UTC (4 years, 10 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.291: +2 -2 lines
Diff to previous 1.291 (colored) to selected 1.280 (colored)

Allow to use KCOV + kASan together

Stop instrumenting KCOV files with kASan and the other way around.
This fixes booting of the setup of using them together.

In theory the checks could be more fine grained, however there is no good
reason (except extra DIAGNISTIC) for running a kernel sanitizer without
kernel coverage.

Patch by <R3x>

Revision 1.291 / (download) - annotate - [select for diffs], Sat Feb 23 03:10:06 2019 UTC (5 years, 1 month ago) by kamil
Branch: MAIN
Changes since 1.290: +9 -1 lines
Diff to previous 1.290 (colored) to selected 1.280 (colored)

Add KCOV - kernel code coverage tracing device

The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.

Revision 1.290 / (download) - annotate - [select for diffs], Mon Jan 21 21:11:54 2019 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127
Changes since 1.289: +4 -3 lines
Diff to previous 1.289 (colored) to selected 1.280 (colored)

Most of the mv operations are to move temporary files to their final place.
Some use -f, others don't. This can lead to spurious build failures when
the user performing the build changes. Centralize, and always use -f.

Revision 1.289 / (download) - annotate - [select for diffs], Tue Jan 1 19:06:38 2019 UTC (5 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190118
Changes since 1.288: +4 -4 lines
Diff to previous 1.288 (colored) to selected 1.280 (colored)

document the elf2foo tools.
The bsd.sys.mk tools are un-prefixed, since the "right" version is installed
for the platform, as opposed to the tools ones which should be able to
co-exist.

Revision 1.288 / (download) - annotate - [select for diffs], Mon Dec 31 13:31:25 2018 UTC (5 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.287: +4 -2 lines
Diff to previous 1.287 (colored) to selected 1.280 (colored)

- prefix elf conversion tools with their platform to avoid conflicts
- add arm-elf2aout

Revision 1.287 / (download) - annotate - [select for diffs], Sun Dec 2 21:00:13 2018 UTC (5 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.286: +9 -1 lines
Diff to previous 1.286 (colored) to selected 1.280 (colored)

Introduce KLEAK, a new feature that can detect kernel information leaks.

It works by tainting memory sources with marker values, letting the data
travel through the kernel, and scanning the kernel<->user frontier for
these marker values. Combined with compiler instrumentation and rotation
of the markers, it is able to yield relevant results with little effort.

We taint the pools and the stack, and scan copyout/copyoutstr. KLEAK is
supported on amd64 only for now, but it is not complicated to add more
architectures (just a matter of having the address of .text, and a stack
unwinder).

A userland tool is provided, that allows to execute a command in rounds
and monitor the leaks generated all the while.

KLEAK already detected directly 12 kernel info leaks, and prompted changes
that in total fixed 25+ leaks.

Based on an idea developed jointly with Thomas Barabosch (of Fraunhofer
FKIE).

Revision 1.286 / (download) - annotate - [select for diffs], Fri Aug 3 02:34:31 2018 UTC (5 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.285: +3 -3 lines
Diff to previous 1.285 (colored) to selected 1.280 (colored)

Allow to overwrite sanitizer flags for userland

Always define -fsanitize=${USE_SANITIZER} and
-fsanitize=${USE_LIBCSANITIZER} before other flags defined with
SANITIZERFLAGS and LIBCSANITIZERFLAGS.

This allows to overwrite rules that are parsed from left to right.
With the current approach it wasn't possible to disable some checks, as
they were reenabled again by the "-fsanitize=" argument.

Revision 1.285 / (download) - annotate - [select for diffs], Wed Jul 25 23:34:25 2018 UTC (5 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.284: +7 -1 lines
Diff to previous 1.284 (colored) to selected 1.280 (colored)

Introduce MKLIBCSANITIZER in the share/mk rules

Add flags that are required to build a program and a dynamically loaded
library.

Propagade LIBCSANITIZERFLAGS to CFLAGS and CXXFLAGS.

LDFLAGS is not changed on purpose, as a libcsanitizer is inside libc
and no external dependencies are needed.

Register NOLIBCSANITIZER, as certain distribution parts will need to be
skipped.

Revision 1.284 / (download) - annotate - [select for diffs], Sun Jun 24 19:35:12 2018 UTC (5 years, 9 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.283: +2 -2 lines
Diff to previous 1.283 (colored) to selected 1.280 (colored)

Reset SANITIZERFLAGS when specified NOSANITIZER / MKSANITIZER=no

This allows passing additional sanitizer specifig flags from the ./build.sh
level, like: -V SANITIZERFLAGS="-fsanitize-memory-track-origins" for MSan.

Revision 1.283 / (download) - annotate - [select for diffs], Thu Jun 21 11:24:38 2018 UTC (5 years, 9 months ago) by kamil
Branch: MAIN
Changes since 1.282: +4 -4 lines
Diff to previous 1.282 (colored) to selected 1.280 (colored)

Refactor MKSANITIZER flags in mk rules

Introduce a new variable SANITIZERFLAGS that contains all the sanitizer
specific flags. These flags are designed to be passed to CFLAGS, CXXFLAGS
and LDFLAGS.

Pass SANITIZERFLAGS in bsd.prog.mk rules to CFLAGS, CXXFLAGS and LDFLAGS.

Pass SANITIZERFLAGS in bsd.lib.mk rules to *_pic.a build flags. The *_pic.a
libraries are designed to construct .so libraries. All .so libraries with
few exceptions are expected to be prebuilt with a sanitizer. Another
purpuse of *_pic.a files can be constructing static PIE programs, however
they are not supported as of now and there is no sanitization of static
programs either.

Once MKSTATICPIE will be supported, it will be initially incompatible with
MKSANITIZER.

This change also makes it easier to build other targets like kernel and
kernel modules without userland sanitizers.

No functional change intended for MKSANITIZER=no users.

Revision 1.282 / (download) - annotate - [select for diffs], Sun Jun 17 23:37:22 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.281: +4 -1 lines
Diff to previous 1.281 (colored) to selected 1.280 (colored)

The compat build plays games with MAKEOBJDIR and unsets MAKEOBJDIRPREFIX.
Keep using our standard NETBSDOBJDIR if it was set.

Revision 1.281 / (download) - annotate - [select for diffs], Wed Jun 13 15:46:26 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.280: +7 -5 lines
Diff to previous 1.280 (colored)

Create NETBSDOBJDIR to handle MAKEOBJDIRPREFIX, since that prepends the
prefix to the whole path.
Mention that we cannot handle MAKEOBJDIR

Revision 1.280 / (download) - annotate - [selected], Mon Jun 11 01:34:03 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.279: +7 -1 lines
Diff to previous 1.279 (colored)

Handle more objdir variations for MKREPRO (untested)

Revision 1.279 / (download) - annotate - [select for diffs], Sat Jun 2 03:02:30 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.278: +15 -14 lines
Diff to previous 1.278 (colored) to selected 1.280 (colored)

Move the RELRO and the SANITIZER stuff outside of the WARNS conditional!

Revision 1.278 / (download) - annotate - [select for diffs], Sat Jun 2 01:41:49 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.277: +7 -1 lines
Diff to previous 1.277 (colored) to selected 1.280 (colored)

Add build glue to build all the code with sanitizers: MKSANITIZE.

Revision 1.277 / (download) - annotate - [select for diffs], Thu May 24 02:06:31 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.276: +5 -3 lines
Diff to previous 1.276 (colored) to selected 1.280 (colored)

Be more selective about remapping object directories otherwise we pick
objdump and objcopy with the regex.

XXX: pullup-8

Revision 1.276 / (download) - annotate - [select for diffs], Sat May 19 17:44:44 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0521
Changes since 1.275: +2 -1 lines
Diff to previous 1.275 (colored) to selected 1.280 (colored)

Need to delete ${DESTDIR} for lint
XXX: pullup-8

Revision 1.275 / (download) - annotate - [select for diffs], Fri Feb 2 01:02:41 2018 UTC (6 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.274: +4 -4 lines
Diff to previous 1.274 (colored) to selected 1.280 (colored)

convert HAVE_GCC handling to modern GCC release numbering:
- HAVE_GCC=5 is now the default (vs. HAVE_GCC=53 we've been using for
  GCC 5.4 and GCC 5.5.)
- remove some more GCC 4.8 code.  we don't support GCC 4 here.
- adjust set lists to gcc=5 from gcc=53.

add some basic HAVE_GCC=6 handling (totally unused so far.)

Revision 1.274 / (download) - annotate - [select for diffs], Mon Jan 22 17:34:01 2018 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.273: +5 -5 lines
Diff to previous 1.273 (colored) to selected 1.280 (colored)

white space for readability.

Revision 1.273 / (download) - annotate - [select for diffs], Mon Jan 22 17:33:01 2018 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.272: +6 -1 lines
Diff to previous 1.272 (colored) to selected 1.280 (colored)

Disgusting and evil hack to elide coverity options that break production
of coverity output when present [userland portion]

    - --sysroot
    - -fstack-protector
    - -std=gnu99
    - --nostdinc
    - -fPIE

The critical one here being --sysroot because this means that we need to
use the actual system headers while building (or chroot/sandbox appropriately)

Revision 1.272 / (download) - annotate - [select for diffs], Tue Aug 1 21:50:36 2017 UTC (6 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.271: +3 -5 lines
Diff to previous 1.271 (colored) to selected 1.280 (colored)

convert two pairs of MACHINE_ARCH into two single MACHINE_CPU checks.

Revision 1.271 / (download) - annotate - [select for diffs], Thu Apr 20 09:29:11 2017 UTC (6 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.270: +6 -1 lines
Diff to previous 1.270 (colored) to selected 1.280 (colored)

Introduce MKSTRIPSYM build option

If it's yes, all local symbols of shared libraries are stripped
(default). If it's no, only temporary local symbols are stripped;
for example, symbols of static functions are kept. Keeping such
symbols is useful on using DTrace for userland libraries and
getting a backtrace from a rump server loading modules (shared
libraries).

Proposed and discussed on tech-kern and tech-toolchain

Revision 1.270 / (download) - annotate - [select for diffs], Wed Mar 22 23:11:09 2017 UTC (7 years ago) by chs
Branch: MAIN
Changes since 1.269: +4 -1 lines
Diff to previous 1.269 (colored) to selected 1.280 (colored)

provide a common softfloat fenv implemenation and use it for softfloat builds.
restore ABI compatibility with previous releases for ieeefp.h on sh3.
add namespace.h protection for all the fenv interfaces.
use MKSOFTFLOAT on sh3 instead of assuming softfloat.
standardize on comparing MKSOFTFLOAT with "no".
remove the arm-specific softfloat fenv code (which also had several bugs).
fix logic errors in the arm hardfloat feraiseexcept() and feupdateenv().

Revision 1.269 / (download) - annotate - [select for diffs], Tue Feb 7 21:19:13 2017 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.268: +2 -1 lines
Diff to previous 1.268 (colored) to selected 1.280 (colored)

Kernel build objdirs have a kernel name after the objdir. Use a regex for
that. Note that debug-prefix-map and debug-regex-map insert entries in a
linked list in reverse order.

Revision 1.268 / (download) - annotate - [select for diffs], Tue Jan 17 11:09:10 2017 UTC (7 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.267: +2 -2 lines
Diff to previous 1.267 (colored) to selected 1.280 (colored)

Don't randomly break the build and restrict -Wsystem-headers to gcc.

Revision 1.267 / (download) - annotate - [select for diffs], Fri Jan 13 14:34:58 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.266: +2 -2 lines
Diff to previous 1.266 (colored) to selected 1.280 (colored)

enable again system header warnings now amd64 builds.

Revision 1.266 / (download) - annotate - [select for diffs], Thu Jan 12 19:10:34 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.265: +2 -2 lines
Diff to previous 1.265 (colored) to selected 1.280 (colored)

disable until we fix the build.

Revision 1.265 / (download) - annotate - [select for diffs], Thu Jan 12 16:47:18 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.264: +5 -1 lines
Diff to previous 1.264 (colored) to selected 1.280 (colored)

PR/51831: Don't suppress warnings coming from system header macro expansions.

Revision 1.264 / (download) - annotate - [select for diffs], Tue Jan 10 17:16:19 2017 UTC (7 years, 3 months ago) by maya
Branch: MAIN
Changes since 1.263: +2 -2 lines
Diff to previous 1.263 (colored) to selected 1.280 (colored)

-Wa,--fatal-warnings is a GCC flag and unknown to clang. make it
GCC specific, so we can (try to) build a kernel with higher WARNS
using clang.

Revision 1.263 / (download) - annotate - [select for diffs], Sat Dec 24 17:44:22 2016 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.262: +2 -1 lines
Diff to previous 1.262 (colored) to selected 1.280 (colored)

Add to lint flags for MKREPRO

Revision 1.262 / (download) - annotate - [select for diffs], Fri Dec 23 21:11:45 2016 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.261: +2 -1 lines
Diff to previous 1.261 (colored) to selected 1.280 (colored)

Don't attempt to shorten resolved path names (via realpath) because it could
lead to inconsistencies between different builds.

Revision 1.261 / (download) - annotate - [select for diffs], Wed Dec 21 03:13:00 2016 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.260: +2 -2 lines
Diff to previous 1.260 (colored) to selected 1.280 (colored)

wildcard obj dirs

Revision 1.260 / (download) - annotate - [select for diffs], Thu Jul 7 20:52:53 2016 UTC (7 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.259: +7 -2 lines
Diff to previous 1.259 (colored) to selected 1.280 (colored)

Add placeholder for compiing earmv7* with -mthumb.
Preserve $d/$a/$t for all ARM binaries regardless of endian.

Revision 1.259 / (download) - annotate - [select for diffs], Tue Jun 14 13:26:45 2016 UTC (7 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.258: +9 -1 lines
Diff to previous 1.258 (colored) to selected 1.280 (colored)

Add and document MKRELRO and set x86 to partial by default.

Revision 1.258 / (download) - annotate - [select for diffs], Tue Apr 12 18:50:45 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.257: +4 -1 lines
Diff to previous 1.257 (colored) to selected 1.280 (colored)

Add --warn-shared-textrel for the linker.

Revision 1.257 / (download) - annotate - [select for diffs], Wed Mar 30 13:05:09 2016 UTC (8 years ago) by martin
Branch: MAIN
Changes since 1.256: +4 -4 lines
Diff to previous 1.256 (colored) to selected 1.280 (colored)

Pass -pie to cc, not -Wl,-pie. This way we have a chance to fix specs
for obscure corner cases like -pie -fPIE -static (used for
/usr/tests/lib/csu/h_initfini2 if building with MKPIE=yes).
While there also replace -fPIC with -fPIE for the PIE case, even if
it should be mostly equivalent.

Revision 1.256 / (download) - annotate - [select for diffs], Tue Mar 22 08:17:27 2016 UTC (8 years ago) by mrg
Branch: MAIN
Changes since 1.255: +10 -7 lines
Diff to previous 1.255 (colored) to selected 1.280 (colored)

apply -Wno-error=stack-protector in the same places for GCC 5.3 as 4.8.
fixes sh3 and m68k issues, at least.  (vax and or1k are also included.)

Revision 1.255 / (download) - annotate - [select for diffs], Sun Mar 13 17:56:56 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.254: +2 -2 lines
Diff to previous 1.254 (colored) to selected 1.280 (colored)

Add NO{SSP,FORTIFY}

Revision 1.254 / (download) - annotate - [select for diffs], Sat Mar 12 23:08:58 2016 UTC (8 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.253: +2 -4 lines
Diff to previous 1.253 (colored) to selected 1.280 (colored)

remove conditionals that are always true with GCC >= 4.8.

Revision 1.253 / (download) - annotate - [select for diffs], Sat Feb 27 18:55:15 2016 UTC (8 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.252: +2 -2 lines
Diff to previous 1.252 (colored) to selected 1.280 (colored)

Avoid syntax errors if HAVE_GCC is not defined.

Revision 1.252 / (download) - annotate - [select for diffs], Sat Feb 20 16:36:08 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.251: +3 -2 lines
Diff to previous 1.251 (colored) to selected 1.280 (colored)

Unbreak LLVM MKREPRO=yes builds (since the build system sets MKREPRO now)

Revision 1.251 / (download) - annotate - [select for diffs], Sun Jan 31 15:30:14 2016 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.250: +2 -2 lines
Diff to previous 1.250 (colored) to selected 1.280 (colored)

Introduce NOPIE and NOCTF so that standalone programs build properly.

Revision 1.250 / (download) - annotate - [select for diffs], Sun Jan 10 16:22:57 2016 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.249: +8 -4 lines
Diff to previous 1.249 (colored) to selected 1.280 (colored)

group by directory.

Revision 1.249 / (download) - annotate - [select for diffs], Sun Jan 10 06:13:21 2016 UTC (8 years, 3 months ago) by dholland
Branch: MAIN
Changes since 1.248: +2 -2 lines
Diff to previous 1.248 (colored) to selected 1.280 (colored)

Apparently it's important to do
  -Wp,-iremap,${DESTDIR}:
and not
  -Wp,-iremap,${DESTDIR}/:/

Why this should matter for strings where the trailing slash is
present, I dunno. But it does.

Fixes the MKREPRO problem where the unfixed path to lfs_accessors.h
appears ina bunch of bins.

Revision 1.248 / (download) - annotate - [select for diffs], Sun Jan 10 03:59:34 2016 UTC (8 years, 3 months ago) by dholland
Branch: MAIN
Changes since 1.247: +3 -3 lines
Diff to previous 1.247 (colored) to selected 1.280 (colored)

For MKREPRO, substitute DESTDIR before NETBSDSRCDIR; then it has a
chance of working if DESTDIR is under NETBSDSRCDIR (as happens with
default objdirs when building someplace random other than /usr/src...)

Revision 1.247 / (download) - annotate - [select for diffs], Sat Jan 9 02:06:22 2016 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.246: +9 -4 lines
Diff to previous 1.246 (colored) to selected 1.280 (colored)

- use -fdebug-regex-map to remap one style of object dirs. There are others.
- change DESTDIR to nothing so that we don't get // in the front
- apply the mappings to both c and c++

Revision 1.246 / (download) - annotate - [select for diffs], Tue Dec 22 16:46:56 2015 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.245: +5 -1 lines
Diff to previous 1.245 (colored) to selected 1.280 (colored)

Add a prefix translation map for debugging symbols. Note the use of variable
indirection so that DW_at_producer that contains the compilation command
remains the same: readelf --debug-dump foo.debug

Revision 1.245 / (download) - annotate - [select for diffs], Wed Sep 3 19:22:53 2014 UTC (9 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.244: +3 -2 lines
Diff to previous 1.244 (colored) to selected 1.280 (colored)

Change to support OR1K

Revision 1.244 / (download) - annotate - [select for diffs], Thu Aug 14 18:39:38 2014 UTC (9 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.243: +3 -3 lines
Diff to previous 1.243 (colored) to selected 1.280 (colored)

Use wildcards for stripping/preserving the mapping symbols on ARM and
AArch64. LLVM creates unique symbols in each file of the form $a.n etc.

Revision 1.243 / (download) - annotate - [select for diffs], Thu Aug 14 15:14:45 2014 UTC (9 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.242: +2 -2 lines
Diff to previous 1.242 (colored) to selected 1.280 (colored)

Fix typo in OBJCOPYLIBFLAGS_EXTRA for aarch64eb.

Revision 1.242 / (download) - annotate - [select for diffs], Sun Aug 10 17:44:26 2014 UTC (9 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Changes since 1.241: +2 -2 lines
Diff to previous 1.241 (colored) to selected 1.280 (colored)

Put GCC/GAS specific options under ACTIVE_CC == "gcc".

Revision 1.241 / (download) - annotate - [select for diffs], Sun Aug 10 05:57:31 2014 UTC (9 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.240: +8 -3 lines
Diff to previous 1.240 (colored) to selected 1.280 (colored)

Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.

Revision 1.240 / (download) - annotate - [select for diffs], Fri Jun 13 01:17:45 2014 UTC (9 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.239: +2 -2 lines
Diff to previous 1.239 (colored) to selected 1.280 (colored)

remove the build support for GCC 4.1, and any hacks i found for it.

there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)

Revision 1.239 / (download) - annotate - [select for diffs], Tue May 27 16:16:01 2014 UTC (9 years, 10 months ago) by plunky
Branch: MAIN
Changes since 1.238: +2 -2 lines
Diff to previous 1.238 (colored) to selected 1.280 (colored)

use -Wno-traditional only for GCC rather than !CLANG

Revision 1.238 / (download) - annotate - [select for diffs], Tue May 27 16:14:03 2014 UTC (9 years, 10 months ago) by plunky
Branch: MAIN
Changes since 1.237: +5 -7 lines
Diff to previous 1.237 (colored) to selected 1.280 (colored)

we use C99 syntax but with some GCC extensions, so signal that depending
on the compiler in use

Revision 1.237 / (download) - annotate - [select for diffs], Tue Jan 28 19:41:52 2014 UTC (10 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.236: +14 -1 lines
Diff to previous 1.236 (colored) to selected 1.280 (colored)

As discussed on tech-toolchain: untill gcc is fixed (or our ABI changed, ...)
make stack protection warnings non-fatal if using gcc 4.8 on sh3/m68k/vax.

Revision 1.236 / (download) - annotate - [select for diffs], Thu Jan 16 01:19:46 2014 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.235: +9 -36 lines
Diff to previous 1.235 (colored) to selected 1.280 (colored)

- Add a new bsd.host.mk that contains all the HOST_ variables extracted from
  bsd.sys.mk and bsd.own.mk
- Add protection requiring that:
	1. bsd.sys.mk is not include from other Makefiles directly
	2. bsd.own.mk must be included before bsd.sys.mk since it
	   sets variables that bsd.sys.mk uses as conditionals.

This is step 1 of removing all variable settings from bsd.sys.mk and
leaving behind only rules. This way, the structure of a standard Makefile
is:
	variable overrides

	optionally include bsd.own.mk
	optionally include bsd.endian.mk

	variable settings that use variables defined in bsd.own.mk

	include a one or more rule .mk files (such as bsd.prog.mk etc)

Revision 1.235 / (download) - annotate - [select for diffs], Wed Jan 15 14:00:09 2014 UTC (10 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.234: +2 -2 lines
Diff to previous 1.234 (colored) to selected 1.280 (colored)

-shared-libgcc is a GCC option, so only use it for gcc.

Revision 1.234 / (download) - annotate - [select for diffs], Fri Jan 10 16:20:14 2014 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.233: +5 -5 lines
Diff to previous 1.233 (colored) to selected 1.280 (colored)

not so fast, let's fix the tree first.

Revision 1.233 / (download) - annotate - [select for diffs], Fri Jan 10 16:16:57 2014 UTC (10 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.232: +6 -1 lines
Diff to previous 1.232 (colored) to selected 1.280 (colored)

Add protection against direct inclusion of this file from other Makefiles.
This file is only intended to be included from the other rules files like
bsd.lib.mk or bsd.prog.mk. If you need things to be defined early, use
bsd.own.mk.

Revision 1.232 / (download) - annotate - [select for diffs], Tue Jan 7 02:16:41 2014 UTC (10 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.231: +1 -2 lines
Diff to previous 1.231 (colored) to selected 1.280 (colored)

Non-literal format strings should be an error by default for clang.

Revision 1.231 / (download) - annotate - [select for diffs], Mon Dec 16 21:34:16 2013 UTC (10 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.230: +4 -2 lines
Diff to previous 1.230 (colored) to selected 1.280 (colored)

Back out change for bsd.lib.mk which skips objcopy -x for BE ARM.
Change OBJCOPYLIBFLAGS to keep $a/$d/$t symbols on BE ARM.

Revision 1.230 / (download) - annotate - [select for diffs], Wed Nov 6 19:57:17 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.229: +5 -2 lines
Diff to previous 1.229 (colored) to selected 1.280 (colored)

turn off another gcc warning for m68k

Revision 1.229 / (download) - annotate - [select for diffs], Mon Oct 28 01:47:13 2013 UTC (10 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.228: +2 -1 lines
Diff to previous 1.228 (colored) to selected 1.280 (colored)

add MKDEPCXX, that is used for C++ files depend creation.  also
add some missing ${COPTS.${.IMPSRC:T}} and ${CPUFLAGS.${.IMPSRC:T}}
to the dependancy rules.

this makes it possible to have C++ files .d files created with the
C++ compiler, and with the normal options for this file, which
means that we can build libstdc++-v3 from gcc 4.8.

Revision 1.228 / (download) - annotate - [select for diffs], Sat Oct 26 03:26:57 2013 UTC (10 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.227: +4 -3 lines
Diff to previous 1.227 (colored) to selected 1.280 (colored)

define a HOST_LINK.cc always.

Revision 1.227 / (download) - annotate - [select for diffs], Thu Sep 12 15:36:16 2013 UTC (10 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.226: +3 -3 lines
Diff to previous 1.226 (colored) to selected 1.280 (colored)

Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.

Revision 1.226 / (download) - annotate - [select for diffs], Thu Jul 18 22:06:09 2013 UTC (10 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.225: +6 -2 lines
Diff to previous 1.225 (colored) to selected 1.280 (colored)

Test BSD makefile about coldfire.
XXX still hate m68k--netbsdelf-coldfire

Revision 1.225 / (download) - annotate - [select for diffs], Wed Jul 17 19:24:56 2013 UTC (10 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.224: +2 -2 lines
Diff to previous 1.224 (colored) to selected 1.280 (colored)

Disable -Wconversion for gcc older than 4.5

Revision 1.224 / (download) - annotate - [select for diffs], Tue Jul 16 17:48:52 2013 UTC (10 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.223: +4 -1 lines
Diff to previous 1.223 (colored) to selected 1.280 (colored)

Add -Wconversion for WARNS > 5

Revision 1.223 / (download) - annotate - [select for diffs], Sun Jan 27 02:31:44 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.222: +2 -18 lines
Diff to previous 1.222 (colored) to selected 1.280 (colored)

Move HAS_SSP and USE_SSP out of bsd.sys.mk. They did not belong there in
the first place. Rename HAS_SSP to HAVE_SSP to match existing practice.

Revision 1.222 / (download) - annotate - [select for diffs], Sat Jan 26 22:04:18 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.221: +1 -4 lines
Diff to previous 1.221 (colored) to selected 1.280 (colored)

CTFCONVERT complains and coredumps for c++

Revision 1.221 / (download) - annotate - [select for diffs], Sat Jan 26 21:49:20 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.220: +4 -1 lines
Diff to previous 1.220 (colored) to selected 1.280 (colored)

CTFCONVERT me harder.

Revision 1.220 / (download) - annotate - [select for diffs], Sun Sep 23 19:20:44 2012 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored) to selected 1.280 (colored)

Revert two unintentional changes from the PPC tests

Revision 1.219 / (download) - annotate - [select for diffs], Sun Sep 23 17:22:25 2012 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.218: +4 -4 lines
Diff to previous 1.218 (colored) to selected 1.280 (colored)

Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
the SSP parameters and a not-yet-default rewrite of SROA.

Revision 1.218 / (download) - annotate - [select for diffs], Wed Sep 5 22:40:30 2012 UTC (11 years, 7 months ago) by riz
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.217: +2 -1 lines
Diff to previous 1.217 (colored) to selected 1.280 (colored)

Remap X11SRCDIR to /usr/xsrc for the MKREPRO=yes case.

Revision 1.217 / (download) - annotate - [select for diffs], Fri Aug 10 16:11:43 2012 UTC (11 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.216: +2 -2 lines
Diff to previous 1.216 (colored) to selected 1.280 (colored)

Make linker warnings fatal by default for Clang, even if not building
GCC.

Revision 1.216 / (download) - annotate - [select for diffs], Mon Jun 25 16:48:55 2012 UTC (11 years, 9 months ago) by abs
Branch: MAIN
Changes since 1.215: +2 -2 lines
Diff to previous 1.215 (colored) to selected 1.280 (colored)

Whatever "-Wl,--fatal-warnings" get-out-of-jail-free card gcc-4.5 gets,
give the same treatment to gcc-4.1.

Revision 1.215 / (download) - annotate - [select for diffs], Tue Mar 20 21:48:20 2012 UTC (12 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.214: +4 -1 lines
Diff to previous 1.214 (colored) to selected 1.280 (colored)

Add WARNS=5 to enable -Wold-style-definitions

Revision 1.214 / (download) - annotate - [select for diffs], Sat Mar 17 18:02:41 2012 UTC (12 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.213: +2 -2 lines
Diff to previous 1.213 (colored) to selected 1.280 (colored)

allow file-specific lint flag additions

Revision 1.213 / (download) - annotate - [select for diffs], Thu Mar 15 15:04:23 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.212: +2 -1 lines
Diff to previous 1.212 (colored) to selected 1.280 (colored)

Don't error out for non-literal format strings with Clang until the rest
of the __printflike changes are in the tree.

Revision 1.212 / (download) - annotate - [select for diffs], Thu Mar 15 02:00:52 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.211: +4 -3 lines
Diff to previous 1.211 (colored) to selected 1.280 (colored)

Decouple HAVE_LLVM from HAVE_GCC. For GCC, add -Wno-format-zero-length
when -Wformat is used.

Revision 1.211 / (download) - annotate - [select for diffs], Sat Jan 28 21:32:14 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base
Branch point for: netbsd-6
Changes since 1.210: +4 -1 lines
Diff to previous 1.210 (colored) to selected 1.280 (colored)

Provide a way to override the default objcopy flags for library modules.

Revision 1.210 / (download) - annotate - [select for diffs], Mon Oct 31 14:20:12 2011 UTC (12 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.209: +6 -3 lines
Diff to previous 1.209 (colored) to selected 1.280 (colored)

switch everything except vax to gcc 4.5.
switch m68k to -Os since -O2 produces much bigger code
with gcc 4.5 than it did with gcc 4.1.

Revision 1.209 / (download) - annotate - [select for diffs], Tue Sep 20 09:11:06 2011 UTC (12 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.208: +4 -2 lines
Diff to previous 1.208 (colored) to selected 1.280 (colored)

Decouple clang and gcc handling a bit. Add -Wmissing-noreturn for clang
builds. GCC complains about about non-void functions not returning,
which is quite a bit more bogus, so don't enable it for that.

Revision 1.208 / (download) - annotate - [select for diffs], Tue Aug 23 05:22:25 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored) to selected 1.280 (colored)

add -Wformat=2

Revision 1.207 / (download) - annotate - [select for diffs], Fri Jul 8 20:59:53 2011 UTC (12 years, 9 months ago) by uwe
Branch: MAIN
Changes since 1.206: +5 -3 lines
Diff to previous 1.206 (colored) to selected 1.280 (colored)

Augment previous.  Use -Wno-uninitialized for sh3 in general, not just
dreamcast.  The problem is not sh3 per-se, but the fact that for sh3
we use -Os by default.  That causes false positives since gcc doesn't
detect that e.g. a variable is set and used under the same condition
in different "if" statements.

XXX: This should probably check for optimization level instead,
though, for all I know, phase of moon might be a contributing cause
too.

XXX2: MACHINE_CPU is set in bsd.own.mk and is not available here, so
we have to spell the test in terms of MACHINE_ARCH.

Revision 1.206 / (download) - annotate - [select for diffs], Fri Jul 8 03:29:52 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.205: +5 -1 lines
Diff to previous 1.205 (colored) to selected 1.280 (colored)

# XXX GCC 4.5 for dreamcast is extra noisy for cases it should be better with
workaround via: CFLAGS+=      -Wno-uninitialized

Revision 1.205 / (download) - annotate - [select for diffs], Wed Jun 29 08:10:05 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.204: +4 -1 lines
Diff to previous 1.204 (colored) to selected 1.280 (colored)

XXX: for now, disable fatal linker warnings for GCC 4.5.

Revision 1.204 / (download) - annotate - [select for diffs], Mon Jun 20 06:52:37 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.203: +3 -3 lines
Diff to previous 1.203 (colored) to selected 1.280 (colored)

remove all the code that supported HAVE_GCC=3.  mostly from chuq.

Revision 1.203 / (download) - annotate - [select for diffs], Mon May 30 13:56:34 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.202: +2 -2 lines
Diff to previous 1.202 (colored) to selected 1.280 (colored)

Reorder CWARNFLAGS and -Werror in CFLAGS to allow CWARNFLAGS and by
extension CWARNFLAGS.${SOURCE} to override it selectively.

Revision 1.202 / (download) - annotate - [select for diffs], Mon May 30 13:47:01 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.201: +3 -2 lines
Diff to previous 1.201 (colored) to selected 1.280 (colored)

Add an alternative to NOGCCERROR for clang.

Revision 1.201 / (download) - annotate - [select for diffs], Thu May 26 12:56:30 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.200: +5 -2 lines
Diff to previous 1.200 (colored) to selected 1.280 (colored)

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.

Revision 1.200 / (download) - annotate - [select for diffs], Wed May 25 15:02:25 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.199: +3 -3 lines
Diff to previous 1.199 (colored) to selected 1.280 (colored)

Restrict -Wno-non-template-friend and -Wno-pmf-conversions to GCC.

Revision 1.199 / (download) - annotate - [select for diffs], Wed May 25 15:01:08 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.198: +3 -1 lines
Diff to previous 1.198 (colored) to selected 1.280 (colored)

Add support for compiler specific warning flags with
CWARNFLAGS.${COMPILER}

Revision 1.198 / (download) - annotate - [select for diffs], Mon May 23 14:32:05 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.197: +2 -1 lines
Diff to previous 1.197 (colored) to selected 1.280 (colored)

Disable Clang's array boundary checker for now (hits e.g. in GCC and BDB)

Revision 1.197 / (download) - annotate - [select for diffs], Sun May 22 20:52:12 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.196: +5 -5 lines
Diff to previous 1.196 (colored) to selected 1.280 (colored)

Simplify a bit

Revision 1.196 / (download) - annotate - [select for diffs], Sun May 22 20:49:16 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.195: +4 -2 lines
Diff to previous 1.195 (colored) to selected 1.280 (colored)

Split SSP parameters on a per-compiler base

Revision 1.195 / (download) - annotate - [select for diffs], Sun May 22 20:24:46 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.194: +3 -2 lines
Diff to previous 1.194 (colored) to selected 1.280 (colored)

No -Wno-traditional for clang.

Revision 1.194 / (download) - annotate - [select for diffs], Tue May 17 01:12:34 2011 UTC (12 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.193: +8 -2 lines
Diff to previous 1.193 (colored) to selected 1.280 (colored)

Enable c99 mode by default.

This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.

Revision 1.193 / (download) - annotate - [select for diffs], Sat Dec 25 18:56:45 2010 UTC (13 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.192: +6 -1 lines
Diff to previous 1.192 (colored) to selected 1.280 (colored)

If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor.  This avoids leaking the source
path into the final binaries.

Revision 1.192 / (download) - annotate - [select for diffs], Wed Apr 21 16:09:11 2010 UTC (13 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.191: +3 -3 lines
Diff to previous 1.191 (colored) to selected 1.280 (colored)

dial . for operator

Revision 1.191 / (download) - annotate - [select for diffs], Wed Apr 21 15:07:20 2010 UTC (13 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.190: +3 -1 lines
Diff to previous 1.190 (colored) to selected 1.280 (colored)

don't try to build PIE binaries when LDSTATIC

Revision 1.190 / (download) - annotate - [select for diffs], Tue Mar 2 20:49:18 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN
Changes since 1.189: +13 -1 lines
Diff to previous 1.189 (colored) to selected 1.280 (colored)

DTrace: Add CTF generation to the make framework.  Only enabled when
MKDTRACE=yes.

Revision 1.189 / (download) - annotate - [select for diffs], Tue Dec 15 04:03:55 2009 UTC (14 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.188: +3 -1 lines
Diff to previous 1.188 (colored) to selected 1.280 (colored)

brace a --fatal-warnings with a NOGCCERROR check.

Revision 1.188 / (download) - annotate - [select for diffs], Mon Dec 14 01:00:46 2009 UTC (14 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.187: +13 -1 lines
Diff to previous 1.187 (colored) to selected 1.280 (colored)

Merge from matt-nb5-mips64

Revision 1.187 / (download) - annotate - [select for diffs], Sun Dec 13 18:40:50 2009 UTC (14 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.186: +3 -1 lines
Diff to previous 1.186 (colored) to selected 1.280 (colored)

Don't add the .h rule for yacc if we are not really building (-n)

Revision 1.186 / (download) - annotate - [select for diffs], Mon Nov 30 16:13:23 2009 UTC (14 years, 4 months ago) by uebayasi
Branch: MAIN
Changes since 1.185: +3 -2 lines
Diff to previous 1.185 (colored) to selected 1.280 (colored)

Support "extsrc", externally added programs and libraries.  Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)

Revision 1.185 / (download) - annotate - [select for diffs], Thu Nov 12 14:30:34 2009 UTC (14 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.184: +2 -11 lines
Diff to previous 1.184 (colored) to selected 1.280 (colored)

Revert SSP changes because at least rmind@, pooka@ and haad@ consider
5% more performance more important than the gain in security.

Revision 1.184 / (download) - annotate - [select for diffs], Thu Nov 12 13:22:34 2009 UTC (14 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.183: +7 -3 lines
Diff to previous 1.183 (colored) to selected 1.280 (colored)

Invent a new flag "USE_SSP_DEFAULT" which defines whether we want to use
SSP for building the whole source tree. Set this to "yes" for
NetBSD/amd64 and NetBSD/i386. It is now possible to get the old
behavior (build libs and certain programs with SSP) by setting
"USE_SSP_DEFAULT" to "no".

Revision 1.183 / (download) - annotate - [select for diffs], Thu Nov 12 08:51:50 2009 UTC (14 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored) to selected 1.280 (colored)

Fix broken conditional to get manual builds (not using "build.sh")
working again.

Revision 1.182 / (download) - annotate - [select for diffs], Wed Nov 11 16:35:45 2009 UTC (14 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.181: +6 -1 lines
Diff to previous 1.181 (colored) to selected 1.280 (colored)

Enable Stack Smash Protection (SSP) by default for NetBSD/amd64 and
NetBSD/i386 as previously discussed on the "port-amd64" and
"port-i386" mailing lists. No objections from the core team.

Thanks a lot to Tobias Nygren for helping me with the benchmarking
and to Christos Zoulas for fixing SSP problems in cgd(4).

Revision 1.181 / (download) - annotate - [select for diffs], Mon Nov 9 15:58:09 2009 UTC (14 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.180: +5 -3 lines
Diff to previous 1.180 (colored) to selected 1.280 (colored)

IA64 doesn't have SSP.

Revision 1.180 / (download) - annotate - [select for diffs], Thu Feb 12 22:49:05 2009 UTC (15 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.179: +2 -1 lines
Diff to previous 1.179 (colored) to selected 1.280 (colored)

Enable -Wsign-compare for WARNS=4 (and above).
Test compiled on i386 and amd64; there may be some stragglers
on other platforms.

Note: -Wall has this by default in gcc4, and we explicitly disable it at
WARNS=1 (i.e., -Wall -Wno-sign-compare).  A goal is to reduce the WARNS level
where this feature is enabled, so we can eventually remove -Wno-sign-compare.

Revision 1.179 / (download) - annotate - [select for diffs], Sun Oct 26 23:13:24 2008 UTC (15 years, 5 months ago) by apb
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3
Branch point for: matt-nb5-mips64, jym-xensuspend
Changes since 1.178: +2 -66 lines
Diff to previous 1.178 (colored) to selected 1.280 (colored)

Always define TOOL_* variables in bsd.own.mk, not in bsd.sys.mk.

Previously, they were defined in bsd.own.mk if USETOOLS=yes, but in
bsd.sys.mk if USETOOLS!=yes.  This caused makefiles that did this:

	.include <bsd.own.mk>
	FOO != ${TOOL_BAR} args...

to work in the USETOOLS=yes case but not in the USETOOLS!=yes case.

Revision 1.178 / (download) - annotate - [select for diffs], Sun Oct 26 15:51:20 2008 UTC (15 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.177: +3 -6 lines
Diff to previous 1.177 (colored) to selected 1.280 (colored)

Set HOST_SH?=/bin/sh unconditionally.  Previously, it was conditionally
set to /usr/bin/bash if HOST_CYGWIN was defined, but now build.sh
tries to set HOST_SH appropriately.

Remove the HOST_CYGWIN variable, which was not used for any other purpose.

Document that HOST_SH should be an absolute path.

THis was proposed in tech-toolchain.

Revision 1.177 / (download) - annotate - [select for diffs], Sat Oct 25 18:29:03 2008 UTC (15 years, 5 months ago) by apb
Branch: MAIN
Changes since 1.176: +1 -3 lines
Diff to previous 1.176 (colored) to selected 1.280 (colored)

Remove AWK variable, which is no longer used.  All previous users
now use TOOL_AWK instead.

Revision 1.176 / (download) - annotate - [select for diffs], Sun Oct 19 19:44:47 2008 UTC (15 years, 5 months ago) by apb
Branch: MAIN
CVS Tags: matt-mips64-base2
Changes since 1.175: +2 -1 lines
Diff to previous 1.175 (colored) to selected 1.280 (colored)

Define TOOL_AWK.

Revision 1.175 / (download) - annotate - [select for diffs], Sun Oct 19 15:22:50 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.174: +3 -2 lines
Diff to previous 1.174 (colored) to selected 1.280 (colored)

handle assembly files for MKPIE

Revision 1.174 / (download) - annotate - [select for diffs], Thu Oct 16 14:36:42 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.173: +5 -1 lines
Diff to previous 1.173 (colored) to selected 1.280 (colored)

Provide a way for a program to override the PIE flags.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Oct 15 17:31:50 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.172: +1 -8 lines
Diff to previous 1.172 (colored) to selected 1.280 (colored)

don't compile/link libraries with pie

Revision 1.172 / (download) - annotate - [select for diffs], Tue Oct 14 07:24:34 2008 UTC (15 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.171: +11 -11 lines
Diff to previous 1.171 (colored) to selected 1.280 (colored)

Use "?=", not "=", to set default values for the TOOL_* variables
added in the previous commit.

Revision 1.171 / (download) - annotate - [select for diffs], Mon Oct 13 18:24:21 2008 UTC (15 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.170: +11 -1 lines
Diff to previous 1.170 (colored) to selected 1.280 (colored)

Add missing TOOL_* variables to bsd.sys.mk and document them in
bsd.README.  Previously, several of these variables were present in
bsd.own.mk but not in bsd.sys.mk or bsd.README.

Revision 1.170 / (download) - annotate - [select for diffs], Mon Oct 13 15:29:22 2008 UTC (15 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.169: +3 -3 lines
Diff to previous 1.169 (colored) to selected 1.280 (colored)

In bsd.sys.mk and bsd.own.mk, sort lists of TOOL_* variables.
In bsd.README, document all TOOL_* variables that are set in bsd.sys.mk.

There are several TOOL_* variables that are set in bsd.own.mk, but not
set in bsd.sys.mk and not documented in bsd.README.

Revision 1.169 / (download) - annotate - [select for diffs], Sun Oct 5 20:20:55 2008 UTC (15 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.168: +1 -3 lines
Diff to previous 1.168 (colored) to selected 1.280 (colored)

Remove the definition of HOST_SED.  HOST_SED was previously used only in
tools/atf-compile, which has now been adjusted to use TOOL_SED.

Revision 1.168 / (download) - annotate - [select for diffs], Fri Sep 26 18:23:09 2008 UTC (15 years, 6 months ago) by apb
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.167: +2 -1 lines
Diff to previous 1.167 (colored) to selected 1.280 (colored)

Build strfile both as a host tool and as an installed program:
* in games/fortune/strfile/Makefile, build strfile as a
  regular program instead of as a host tool;
* add tools/strfile directory to build strfile as a host tool;
* in tools/Makefile, add strfile to SUBDIR list;
* in BSD.*.mk, define TOOL_STRFILE variable;
* in games/fortune/datfiles/Makefile, use TOOL_STRFILE when creating
  databases at build time;
* in distrib/sets/lists/games/mi, mention usr/games/strfile.

Revision 1.167 / (download) - annotate - [select for diffs], Fri Sep 19 22:54:55 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.166: +4 -3 lines
Diff to previous 1.166 (colored) to selected 1.280 (colored)

support per file lex and yacc prefixes.

Revision 1.166 / (download) - annotate - [select for diffs], Sun Aug 24 06:27:00 2008 UTC (15 years, 7 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.165: +2 -2 lines
Diff to previous 1.165 (colored) to selected 1.280 (colored)

Honour HAVE_PCC

Revision 1.165 / (download) - annotate - [select for diffs], Wed Jul 23 23:21:56 2008 UTC (15 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.164: +3 -1 lines
Diff to previous 1.164 (colored) to selected 1.280 (colored)

Disable PIE for kernel builds. Some architectures pass -mcmodel to gcc and
this is incompatible with PIE. And we don't really want pic objects in the
kernel

Revision 1.164 / (download) - annotate - [select for diffs], Mon Jul 21 23:30:48 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.163: +5 -1 lines
Diff to previous 1.163 (colored) to selected 1.280 (colored)

If WARNS>0 and !defined(NOGCCERROR), add
  -Wa,--fatal-warnings
to CFLAGS to set assembler warnings to be fatal.
(Done via CFLAGS instead of AFLAGS so that all assembling, not just
that of .S/.s files, uses the option.)

Revision 1.163 / (download) - annotate - [select for diffs], Wed Apr 30 21:15:33 2008 UTC (15 years, 11 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.162: +2 -2 lines
Diff to previous 1.162 (colored) to selected 1.280 (colored)

Convert prep to use the new unified mkbootimage rather than it's own.  This
mkbootimage can be shared by prep, rs6000, and bebox.

TODO: Convert bebox to use this.  Needs someone to test.

Revision 1.162 / (download) - annotate - [select for diffs], Tue Apr 22 12:47:59 2008 UTC (15 years, 11 months ago) by tsutsui
Branch: MAIN
Changes since 1.161: +6 -1 lines
Diff to previous 1.161 (colored) to selected 1.280 (colored)

Redo a change in rev 1.160 with more proper way:
> Don't make linker warnings fatal on linking static libs since
> there is no proper way to avoid "FOO is a patented algorithm" warnings.

Ok'ed by christos@ and dogcow@ on tech-toolchain, and
tested build.sh build for sun2, news68k, alpha and newsmips.

Revision 1.161 / (download) - annotate - [select for diffs], Tue Apr 15 00:08:05 2008 UTC (16 years ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.160: +0 -4 lines
Diff to previous 1.160 (colored) to selected 1.280 (colored)

Backout previous for now. We have to rethink dependency for MKPIC and LDSTATIC.
Pointed out by dogcow@.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Apr 14 13:41:43 2008 UTC (16 years ago) by tsutsui
Branch: MAIN
Changes since 1.159: +5 -1 lines
Diff to previous 1.159 (colored) to selected 1.280 (colored)

Don't make linker warnings fatal on linking static libs since
there is no proper way to avoid "FOO is a patented algorithm" warnings.
Ok'ed by christos@ on tech-toolchain.

Revision 1.159 / (download) - annotate - [select for diffs], Mon Mar 3 06:33:17 2008 UTC (16 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Branch point for: mjf-devfs2
Changes since 1.158: +3 -1 lines
Diff to previous 1.158 (colored) to selected 1.280 (colored)

Set linker warnings to be fatal if ${WARNS} > 0.

Revision 1.158 / (download) - annotate - [select for diffs], Wed Jan 9 11:26:14 2008 UTC (16 years, 3 months ago) by simonb
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Branch point for: keiichi-mipv6
Changes since 1.157: +1 -5 lines
Diff to previous 1.157 (colored) to selected 1.280 (colored)

Remove support for NetBSD/pc532.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Dec 28 21:35:45 2007 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pc532-eol-2008, matt-armv6-base
Changes since 1.156: +6 -1 lines
Diff to previous 1.156 (colored) to selected 1.280 (colored)

add MKPIE

Revision 1.156 / (download) - annotate - [select for diffs], Mon Nov 12 14:54:43 2007 UTC (16 years, 5 months ago) by jmmv
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.155: +4 -1 lines
Diff to previous 1.155 (colored) to selected 1.280 (colored)

Add the atf host tools

This adds reachover Makefiles to build the atf tools required during a
cross-build.

Revision 1.155 / (download) - annotate - [select for diffs], Sun Jun 3 21:07:33 2007 UTC (16 years, 10 months ago) by uwe
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.154: +2 -3 lines
Diff to previous 1.154 (colored) to selected 1.280 (colored)

Stack protector codegen bug on sh3 has been fixed, so drop sh3 from
the list of platforms where we disable ssp.

Revision 1.154 / (download) - annotate - [select for diffs], Sun Jun 3 17:42:18 2007 UTC (16 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.153: +1 -3 lines
Diff to previous 1.153 (colored) to selected 1.280 (colored)

we can now compile libc with _FORTIFY_SOURCE

Revision 1.153 / (download) - annotate - [select for diffs], Thu May 31 00:17:32 2007 UTC (16 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.152: +2 -2 lines
Diff to previous 1.152 (colored) to selected 1.280 (colored)

Fix inverted comparison ${MACHINE_ARCH} != "hppa" when checking for
ssp.  (hi^2 tls!)

Revision 1.152 / (download) - annotate - [select for diffs], Wed May 30 22:54:12 2007 UTC (16 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.151: +2 -2 lines
Diff to previous 1.151 (colored) to selected 1.280 (colored)

Use matching open and close parens.
Why make doesn't complain about $(foo} ?

Revision 1.151 / (download) - annotate - [select for diffs], Wed May 30 21:27:54 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.150: +4 -4 lines
Diff to previous 1.150 (colored) to selected 1.280 (colored)

Fix typo, and eliminate mention of libssp since it's gone.
Move -D_FORTIFY_SOURCE to CPPFLAGS from COPTS.

Revision 1.150 / (download) - annotate - [select for diffs], Wed May 30 21:14:38 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.149: +12 -11 lines
Diff to previous 1.149 (colored) to selected 1.280 (colored)

Match usage of FORTIFY_SOURCE on other platforms by not requiring special
include path: the normal header files now include the "SSP" ones (which one
should note are not really named right: SSP and FORTIFY_SOURCE are independent
features).

Disable USE_SSP on targets where the compiler doesn't support it at all
(mips, alpha) or it's known broken (sh3).  But enable FORTIFY_SOURCE,
without SSP, on those platforms -- tested on mipsel.

Revision 1.149 / (download) - annotate - [select for diffs], Wed May 30 14:21:31 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored) to selected 1.280 (colored)

mipsel || mipseb, not mipsel || mipsel

Revision 1.148 / (download) - annotate - [select for diffs], Wed May 30 01:13:21 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.147: +1 -3 lines
Diff to previous 1.147 (colored) to selected 1.280 (colored)

Move FORTIFY_SOURCE implementation from the somewhat ill-named "libssp"
(what other systems keep in libssp, we already have in libc) into libc
to match what other systems with FORTIFY_SOURCE do.  Goodbye, libssp
dependency in libraries and executables.  Discussed with christos and
mrg; Christos will merge the headers to get us the rest of the way to a
FORTIFY_SOURCE implementation that works as others' code expects.

Revision 1.147 / (download) - annotate - [select for diffs], Tue May 29 21:24:57 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored) to selected 1.280 (colored)

Sigh, revert previous and fix right: we don't have MACHINE_CPU in bsd.sys.mk.

Revision 1.146 / (download) - annotate - [select for diffs], Tue May 29 21:09:18 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored) to selected 1.280 (colored)

MACHINE_ARCH -> MACHINE_CPU so excluding mips from SSP/FORT works right.

Revision 1.145 / (download) - annotate - [select for diffs], Tue May 29 13:55:31 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.144: +6 -1 lines
Diff to previous 1.144 (colored) to selected 1.280 (colored)

Fix two bugs reported by Simon Burge: 1) USE_FORT and USE_SSP should be
disabled on platforms where GCC doesn't support -fstack-protector.  2) The
libssl Makefile had a hard-coded USE_FORT=yes.

Revision 1.144 / (download) - annotate - [select for diffs], Tue May 29 04:56:34 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.143: +3 -3 lines
Diff to previous 1.143 (colored) to selected 1.280 (colored)

Sigh.  Fix USE_FORT: do not use /usr/include/ssp from *host* system.

Revision 1.143 / (download) - annotate - [select for diffs], Mon May 28 12:06:23 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.142: +15 -5 lines
Diff to previous 1.142 (colored) to selected 1.280 (colored)

Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.

Revision 1.142 / (download) - annotate - [select for diffs], Tue May 22 23:58:54 2007 UTC (16 years, 10 months ago) by tls
Branch: MAIN
Changes since 1.141: +6 -1 lines
Diff to previous 1.141 (colored) to selected 1.280 (colored)

Add -D_FORTIFY_SOURCE=2 where it can safely/sanely be used if building
with USE_SSP: not in the kernel, and not in libssp itself.

Revision 1.141 / (download) - annotate - [select for diffs], Sun Jan 14 16:19:55 2007 UTC (17 years, 3 months ago) by apb
Branch: MAIN
Changes since 1.140: +2 -1 lines
Diff to previous 1.140 (colored) to selected 1.280 (colored)

Define TOOL_JOIN.

Revision 1.140 / (download) - annotate - [select for diffs], Sat Nov 11 06:28:49 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored) to selected 1.280 (colored)

disable SSP for standalone code.

Revision 1.139 / (download) - annotate - [select for diffs], Fri Nov 10 17:22:19 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.138: +2 -1 lines
Diff to previous 1.138 (colored) to selected 1.280 (colored)

add the non tool version of paxctl

Revision 1.138 / (download) - annotate - [select for diffs], Thu Nov 9 17:06:54 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.137: +5 -1 lines
Diff to previous 1.137 (colored) to selected 1.280 (colored)

Add ssp glue.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Oct 22 22:17:30 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.136: +2 -1 lines
Diff to previous 1.136 (colored) to selected 1.280 (colored)

Add -Wextra -Wno-unused-parameter to WARNS > 2

Revision 1.136 / (download) - annotate - [select for diffs], Sun Oct 8 17:16:51 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.135: +1 -7 lines
Diff to previous 1.135 (colored) to selected 1.280 (colored)

PR/28368: Peter Postma: unrecognized option `-Wnetbsd-format-audit'

Apply patch from rivo nurges in #NetBSD-code, thanks!

Revision 1.135 / (download) - annotate - [select for diffs], Sat Sep 9 03:53:19 2006 UTC (17 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.134: +5 -1 lines
Diff to previous 1.134 (colored) to selected 1.280 (colored)

Use -Wno-uninitialized for ns32k.  For some reason, gcc on ns32k
doesn't detect initialisation correction in simple "for" loops like:
	for (i = 0; i < 10; i++)
		var = i;

Revision 1.134 / (download) - annotate - [select for diffs], Sat Jul 1 06:02:51 2006 UTC (17 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.133: +2 -2 lines
Diff to previous 1.133 (colored) to selected 1.280 (colored)

-std=gnu99 can be applied with GCC>=3, not MACHINE != vax.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Jun 18 14:38:48 2006 UTC (17 years, 10 months ago) by gdamore
Branch: MAIN
Changes since 1.132: +2 -1 lines
Diff to previous 1.132 (colored) to selected 1.280 (colored)

Forgot to commit these for TOOL_SED.  Thanks to tsutsui@ for pointing it out.

Revision 1.132 / (download) - annotate - [select for diffs], Fri Jun 2 22:16:18 2006 UTC (17 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.131: +1 -6 lines
Diff to previous 1.131 (colored) to selected 1.280 (colored)

remove support for building (with) GCC 2.95.  also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.

Revision 1.131 / (download) - annotate - [select for diffs], Mon May 22 00:43:04 2006 UTC (17 years, 10 months ago) by uwe
Branch: MAIN
Changes since 1.130: +1 -3 lines
Diff to previous 1.130 (colored) to selected 1.280 (colored)

Enable -Wold-style-cast for sh3 now that its stadarg.h doesn't use LHS casts.

Revision 1.130 / (download) - annotate - [select for diffs], Sat May 20 00:48:41 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.129: +1 -4 lines
Diff to previous 1.129 (colored) to selected 1.280 (colored)

Remove -Wno-attribute for gcc4

Revision 1.129 / (download) - annotate - [select for diffs], Thu May 11 23:47:34 2006 UTC (17 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.128: +5 -4 lines
Diff to previous 1.128 (colored) to selected 1.280 (colored)

add support for ${OBJCOPTS} and ${OBJCOPTS}.<lib|prog|fn>.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Apr 7 19:38:58 2006 UTC (18 years ago) by mrg
Branch: MAIN
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.280 (colored)

retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Mar 27 11:50:08 2006 UTC (18 years ago) by he
Branch: MAIN
Changes since 1.126: +4 -2 lines
Diff to previous 1.126 (colored) to selected 1.280 (colored)

The -Wno-packed switch is a gcc3+ thing, so place it where it won't
be picked up by gcc 2.95.3.  Fixes build problem for vax.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Mar 25 22:23:04 2006 UTC (18 years ago) by dogcow
Branch: MAIN
Changes since 1.125: +2 -2 lines
Diff to previous 1.125 (colored) to selected 1.280 (colored)

Add -Wno-packed, in preparation for gcc4.1.x; unlike most of the other
warnings, it (at best) flags possible underoptimization, and not any
code defects.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Dec 2 21:34:50 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.124: +2 -2 lines
Diff to previous 1.124 (colored) to selected 1.280 (colored)

For now, s/c99/gnu99/ for WARNS=4. This is so that alloca() is defined (and
possibly other built-in functions). Another solution would be to add:

    #ifdef __GNUC__
    #define alloca(a) __builtin_alloca(a)
    #else
    void *alloca(size_t);
    #endif

in stdlib.h, since we have assembly support for some architectures on
non-gcc environments, and we can add the rest.

Revision 1.124 / (download) - annotate - [select for diffs], Fri Sep 2 03:57:10 2005 UTC (18 years, 7 months ago) by jwise
Branch: MAIN
Changes since 1.123: +13 -2 lines
Diff to previous 1.123 (colored) to selected 1.280 (colored)

Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Aug 9 22:16:19 2005 UTC (18 years, 8 months ago) by he
Branch: MAIN
Changes since 1.122: +5 -2 lines
Diff to previous 1.122 (colored) to selected 1.280 (colored)

Disable the C++ warning -Wold-style-cast for sh3 as well, because
that CPU's headers' va_start() uses a cast.

Discussed with christos.

Revision 1.122 / (download) - annotate - [select for diffs], Tue Aug 9 15:24:26 2005 UTC (18 years, 8 months ago) by he
Branch: MAIN
Changes since 1.121: +6 -3 lines
Diff to previous 1.121 (colored) to selected 1.280 (colored)

Gcc 2.95.3 doesn't support the -Wabi warning flag, so don't try to use
it there.

The vax port's va_start() macro uses a cast, so for the moment disable
the -Wold-style-cast warning flag for the old GCC as well (as vax is
the only remaining port using this compiler).

Revision 1.121 / (download) - annotate - [select for diffs], Tue Aug 9 02:38:06 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.120: +4 -1 lines
Diff to previous 1.120 (colored) to selected 1.280 (colored)

Add CXXFLAGS for WARNS=2

Revision 1.120 / (download) - annotate - [select for diffs], Sat Jul 9 18:45:16 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored) to selected 1.280 (colored)

Add .m in the list of suffixes, otherwise including bsd.sys.mk in a Makefile
treats the .m.o:  suffix rule as a target. This broke typing 'make' in
${NETBSDSRC}/sys/kern.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Jun 4 12:17:45 2005 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored) to selected 1.280 (colored)

Don't add -Wno-uninitialized to CFLAGS if WARNS > 0 and HAVE_GCC != no,
as gcc3 generates much less false positives for -Wuninitalized and I
have found genuine bugs with this warning enabled.
Tested by building a full release of NetBSD/i386.

Revision 1.118 / (download) - annotate - [select for diffs], Tue May 31 03:45:42 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.117: +2 -1 lines
Diff to previous 1.117 (colored) to selected 1.280 (colored)

We need a non-tool version of genassym.

Revision 1.117 / (download) - annotate - [select for diffs], Mon May 23 21:58:21 2005 UTC (18 years, 10 months ago) by riz
Branch: MAIN
Changes since 1.116: +2 -1 lines
Diff to previous 1.116 (colored) to selected 1.280 (colored)

Provide a default definition of OBJDUMP - bsd.kmod.mk expects it.
Approved by heas.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Apr 5 11:56:09 2005 UTC (19 years ago) by tron
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored) to selected 1.280 (colored)

Don't use "-std=c99" for NetBSD-vax because gcc 2.95.3 doesn't support it.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Feb 20 01:31:44 2005 UTC (19 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.114: +4 -1 lines
Diff to previous 1.114 (colored) to selected 1.280 (colored)

Add support for WARNS=4 (-std=c99)

Revision 1.114 / (download) - annotate - [select for diffs], Tue Oct 19 01:05:40 2004 UTC (19 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.113: +2 -1 lines
Diff to previous 1.113 (colored) to selected 1.280 (colored)

Add CPUFLAGS to AFLAGS as well as CFLAGS so that CPUFLAGS is used for
assembly files.

Revision 1.113 / (download) - annotate - [select for diffs], Tue Jun 8 21:46:52 2004 UTC (19 years, 10 months ago) by abs
Branch: MAIN
Changes since 1.112: +2 -1 lines
Diff to previous 1.112 (colored) to selected 1.280 (colored)

Add TOOL_SPARKCRC. Need to clean up what happens in the non tools case.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Apr 18 03:19:02 2004 UTC (20 years ago) by lukem
Branch: MAIN
Changes since 1.111: +2 -1 lines
Diff to previous 1.111 (colored) to selected 1.280 (colored)

add a blank line to improve readability

Revision 1.111 / (download) - annotate - [select for diffs], Tue Jan 27 03:31:48 2004 UTC (20 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.110: +5 -2 lines
Diff to previous 1.110 (colored) to selected 1.280 (colored)

Replace
	:M-[IDU]*
with
	:C/-([IDU])[  ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)

Revision 1.110 / (download) - annotate - [select for diffs], Sun Nov 16 16:10:50 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.109: +2 -2 lines
Diff to previous 1.109 (colored) to selected 1.280 (colored)

.c.lo: support per-target COPTS, CPPFLAGS, CPUFLAGS

Revision 1.109 / (download) - annotate - [select for diffs], Fri Nov 14 05:22:02 2003 UTC (20 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.108: +3 -1 lines
Diff to previous 1.108 (colored) to selected 1.280 (colored)

Add a AWK for awk.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Nov 13 05:54:44 2003 UTC (20 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.107: +3 -1 lines
Diff to previous 1.107 (colored) to selected 1.280 (colored)

Add a HOST_LN.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Nov 8 06:06:50 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.106: +3 -29 lines
Diff to previous 1.106 (colored) to selected 1.280 (colored)

Remove single suffix inference rules from here; nothing in the tree
relies upon them (AFAICT).

(This fixes the build issue with src/x11, because the .cpp rule in
bsd.x11.mk was being overridden by the .cpp rule here)

Revision 1.106 / (download) - annotate - [select for diffs], Wed Oct 29 02:10:57 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.105: +7 -7 lines
Diff to previous 1.105 (colored) to selected 1.280 (colored)

use ${.PREFIX} instead of ${.TARGET:R}

Revision 1.105 / (download) - annotate - [select for diffs], Tue Oct 21 16:36:58 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.104: +1 -37 lines
Diff to previous 1.104 (colored) to selected 1.280 (colored)

Move the MAKEVERBOSE setup from <bsd.sys.mk> to <bsd.own.mk>, and
change all the variable assignments from = to ?=

Revision 1.104 / (download) - annotate - [select for diffs], Tue Oct 21 10:01:22 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.103: +37 -52 lines
Diff to previous 1.103 (colored) to selected 1.280 (colored)

Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Oct 20 00:24:22 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.102: +14 -4 lines
Diff to previous 1.102 (colored) to selected 1.280 (colored)

Add MAKEVERBOSE pretty versions for   .cc .cpp .cxx .C

Fix typo in .l.o and .y.o rule

Revision 1.102 / (download) - annotate - [select for diffs], Sun Oct 19 14:23:02 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.101: +2 -1 lines
Diff to previous 1.101 (colored) to selected 1.280 (colored)

add _MKMSGCREATE.m

Revision 1.101 / (download) - annotate - [select for diffs], Sun Oct 19 03:53:33 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.100: +2 -1 lines
Diff to previous 1.100 (colored) to selected 1.280 (colored)

add _MKMSGINSTALL.m

Revision 1.100 / (download) - annotate - [select for diffs], Sun Oct 19 03:21:18 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored) to selected 1.280 (colored)

fix _MKSHECHO for MAKEVERBOSE=1

Revision 1.99 / (download) - annotate - [select for diffs], Sun Oct 19 03:00:55 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.98: +27 -18 lines
Diff to previous 1.98 (colored) to selected 1.280 (colored)

Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} "  ...  {$.TARGET}"  and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO

Revision 1.98 / (download) - annotate - [select for diffs], Sun Oct 19 02:11:29 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.97: +20 -2 lines
Diff to previous 1.97 (colored) to selected 1.280 (colored)

Add rules for  .s .s.o .S .S.o  to support per-source COPTS,CPUFLAGS,CPPFLAGS
and MAKEVERBOSE

Revision 1.97 / (download) - annotate - [select for diffs], Sat Oct 18 16:41:19 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.96: +12 -6 lines
Diff to previous 1.96 (colored) to selected 1.280 (colored)

implement MAKEVERBOSE for rules which are of the form:
        @cmp -s ${.ALLSRC} ${.TARGET} || ( echo cmd && cmd )

Revision 1.96 / (download) - annotate - [select for diffs], Sat Oct 18 15:33:59 2003 UTC (20 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.95: +39 -1 lines
Diff to previous 1.95 (colored) to selected 1.280 (colored)

Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
    0	Minimal output ("quiet")
    1	Describe what is occurring
    2	Describe what is occurring and echo the actual command ("verbose")
	This is the default, and is equivalent to the previous behaviour.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Aug 22 18:07:21 2003 UTC (20 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.94: +7 -3 lines
Diff to previous 1.94 (colored) to selected 1.280 (colored)

Disable -Wtraditional and explain why.

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jul 28 02:38:33 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored) to selected 1.280 (colored)

Be consistent how "multiple include protection" is implemented.  I.e,

	.if !defined(_BSD_foo_MK_)
	_BSD_foo_MK_=1

	# ...

	.endif	# !defined(_BSD_foo_MK_)

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jul 22 06:53:23 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.92: +12 -4 lines
Diff to previous 1.92 (colored) to selected 1.280 (colored)

Add source-file-specific variables in <bsd.lib.mk> and <bsd.prog.mk>:

COPTS.<fn>	Additional flags to the compiler when creating the C objects
		for <fn>.

CPUFLAGS.<fn>	Additional flags to the compiler/assembler for <fn>.

CPPFLAGS.<fn>	Additional flags to the C pre-processor for <fn>.


(For <fn>.[ly], "<fn>.c" must be used.)

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jul 20 14:36:12 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.91: +2 -1 lines
Diff to previous 1.91 (colored) to selected 1.280 (colored)

add TOOL_STAT for stat(1)

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jul 18 02:52:52 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored) to selected 1.280 (colored)

Add MKMANZ; if not set to "no", compress the manual pages at installation time.
This replaces the previous  .if defined (MANZ) behaviour, although the latter
will set MKMANZ=yes for compatibility purposes.

Don't bother with -P-bou in TOOL_ROFF_HTML; it doesn't appear to be
necessary with groff 1.19.

Fix NOHTML implementation to be consistent with other NOxxx / MKxxx
variables, and expose the user-tweakable MKHTML.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Jul 14 00:41:17 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored) to selected 1.280 (colored)

use full path in default TOOL_MAKEWHATIS

Revision 1.89 / (download) - annotate - [select for diffs], Thu Jul 10 10:34:37 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.88: +49 -20 lines
Diff to previous 1.88 (colored) to selected 1.280 (colored)

Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Jun 26 06:30:09 2003 UTC (20 years, 9 months ago) by tshiozak
Branch: MAIN
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (colored) to selected 1.280 (colored)

Citrus iconv support(3)
add host tools : mkcsmapper and mkesdb
  mkcsmapper - coded character set mapping table compiler
  mkesdb - encoding scheme database compiler

Revision 1.87 / (download) - annotate - [select for diffs], Fri May 30 18:43:24 2003 UTC (20 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +3 -1 lines
Diff to previous 1.86 (colored) to selected 1.280 (colored)

Add a CPUFLAGS variable which can be set by the user's mk.conf or in
the environment:

CPUFLAGS        Additional flags to the compiler/assembler to select
                CPU instruction set options, CPU tuning options, etc.

Since CPUFLAGS is not implicitly set by any part of the make infrastructure,
it is safe to set in mk.conf, unlike COPTS or DBG.

Revision 1.86 / (download) - annotate - [select for diffs], Sun May 18 08:09:25 2003 UTC (20 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored) to selected 1.280 (colored)

Add ${TOOL_DB}; db(1) as a (host) tool.

Note: this is the first tool using a "TOOL_" prefix in the make(1) variable;
other similar "non-standard" variable names will be converted in the future.

Revision 1.85 / (download) - annotate - [select for diffs], Thu May 8 20:39:01 2003 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored) to selected 1.280 (colored)

Fix _HOST_CYGWIN lossage.

Revision 1.84 / (download) - annotate - [select for diffs], Thu May 8 13:02:10 2003 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.83: +7 -1 lines
Diff to previous 1.83 (colored) to selected 1.280 (colored)

Deal with CYGWIN's sh screwage.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Dec 21 12:58:13 2002 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored) to selected 1.280 (colored)

add SUNLABEL

Revision 1.82 / (download) - annotate - [select for diffs], Mon Nov 25 03:03:13 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored) to selected 1.280 (colored)

Add -Wno-sign-compare to CFLAGS.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jul 20 11:43:34 2002 UTC (21 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.80: +5 -1 lines
Diff to previous 1.80 (colored) to selected 1.280 (colored)

add -Wa,-Av8plus to CFLAGS if we are building for 32bit sparc

Revision 1.80 / (download) - annotate - [select for diffs], Tue Jun 11 16:25:11 2002 UTC (21 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.79: +2 -1 lines
Diff to previous 1.79 (colored) to selected 1.280 (colored)

add CAT here too

Revision 1.79 / (download) - annotate - [select for diffs], Thu May 30 21:44:07 2002 UTC (21 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored) to selected 1.280 (colored)

remove duplicated -Wpointer-arith when WARNS=2

Revision 1.78 / (download) - annotate - [select for diffs], Tue May 28 21:56:06 2002 UTC (21 years, 10 months ago) by bjh21
Branch: MAIN
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored) to selected 1.280 (colored)

Add fgen as a host tool, used for sys/arch/sparc/bootblk.

Revision 1.77 / (download) - annotate - [select for diffs], Thu May 2 13:13:53 2002 UTC (21 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored) to selected 1.280 (colored)

Make the ELF2ECOFF assignment an "?=" assignment so it won't override the
setting in bsd.own.mk.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Apr 23 00:15:45 2002 UTC (21 years, 11 months ago) by bjh21
Branch: MAIN
Changes since 1.75: +5 -2 lines
Diff to previous 1.75 (colored) to selected 1.280 (colored)

Sun Workshop C 5.0 objects to generating object files with suffixes other than
.o.  Work around this by generating host object files with a .lo.o suffix and
then renaming to .lo.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Apr 12 05:08:53 2002 UTC (22 years ago) by lukem
Branch: MAIN
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored) to selected 1.280 (colored)

add ELF2ECOFF

Revision 1.74 / (download) - annotate - [select for diffs], Wed Apr 3 05:32:58 2002 UTC (22 years ago) by lukem
Branch: MAIN
Changes since 1.73: +6 -5 lines
Diff to previous 1.73 (colored) to selected 1.280 (colored)

add INSTALLBOOT.  sort some entries in bsd.sys.mk

Revision 1.73 / (download) - annotate - [select for diffs], Mon Apr 1 13:30:24 2002 UTC (22 years ago) by bjh21
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored) to selected 1.280 (colored)

Add a default for CAP_MKDB.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Mar 31 15:01:40 2002 UTC (22 years ago) by bjh21
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored) to selected 1.280 (colored)

Add CKSUM.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Mar 31 11:48:45 2002 UTC (22 years ago) by bjh21
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored) to selected 1.280 (colored)

Provide a default for PWD_MKDB.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 27 23:33:51 2002 UTC (22 years, 2 months ago) by ross
Branch: MAIN
Changes since 1.69: +8 -1 lines
Diff to previous 1.69 (colored) to selected 1.280 (colored)

Drink ALL the Kool-Aid.

(Move -mieee from lib/ to bsd.*.mk; new var MKIEEEFP defaults to yes.)

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jan 25 05:21:40 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.68: +3 -1 lines
Diff to previous 1.68 (colored) to selected 1.280 (colored)

add $PAX to both, and $MAKEFS to bsd.sys.mk

Revision 1.68 / (download) - annotate - [select for diffs], Thu Nov 29 23:55:33 2001 UTC (22 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored) to selected 1.280 (colored)

Ah, don't actually need MAKEWHATIS here.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Nov 29 23:53:23 2001 UTC (22 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored) to selected 1.280 (colored)

Provide ${MAKEWHATIS}.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Nov 28 20:12:47 2001 UTC (22 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.65: +2 -5 lines
Diff to previous 1.65 (colored) to selected 1.280 (colored)

Use :U successfully this time.  In an expression such as ${FOO:D:Ubar}, you
end up with empty string if FOO is defined, and `bar' if it is undefined.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Nov 26 06:11:20 2001 UTC (22 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.64: +5 -2 lines
Diff to previous 1.64 (colored) to selected 1.280 (colored)

Revert check for NOGCCERROR back to a .if \!defined as the :U check will break
anyone with NOGCCERROR=1 in their mk.conf

Revision 1.64 / (download) - annotate - [select for diffs], Sat Nov 17 22:55:24 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +6 -1 lines
Diff to previous 1.63 (colored) to selected 1.280 (colored)

Protect from multiple inclusion.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Nov 17 22:48:48 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored) to selected 1.280 (colored)

Make sure MKDEP is defined for the non-USETOOLS case.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Nov 15 12:15:09 2001 UTC (22 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored) to selected 1.280 (colored)

Re-add check for defined(MKSOFTFLOAT) that got lost in v1.60.
Needed for Makefiles which include bsd.sys.mk, but not bsd.own.mk,
like distrib/macppc/floppies/ramdisk/Makefile.
Okay'd by simonb.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Nov 14 21:49:54 2001 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.60: +2 -5 lines
Diff to previous 1.60 (colored) to selected 1.280 (colored)

Move the DESTDIR-based nostdinc logic to bsd.lib.mk and bsd.prog.mk where
it belongs (with the native target compile rules).

Revision 1.60 / (download) - annotate - [select for diffs], Tue Nov 13 20:25:38 2001 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.59: +12 -9 lines
Diff to previous 1.59 (colored) to selected 1.280 (colored)

* Use -isystem instead of -idirafter for ${DESTDIR}/usr/include.
* Provide defaults for HOST_AR and HOST_RANLIB.
* Formatting cleanup.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Nov 12 23:16:21 2001 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.58: +2 -1 lines
Diff to previous 1.58 (colored) to selected 1.280 (colored)

Major overhaul of src/tools and host toolchain.  Summary of changes:

* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Nov 11 21:41:00 2001 UTC (22 years, 5 months ago) by tv
Branch: MAIN
Changes since 1.57: +6 -4 lines
Diff to previous 1.57 (colored) to selected 1.280 (colored)

Provide defaults for MDSETIMAGE and CRUNCHGEN.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Nov 1 07:27:35 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.280 (colored)

move -Wwrite-strings to WARNS=3 too ... (yech!)

Revision 1.56 / (download) - annotate - [select for diffs], Thu Nov 1 07:17:17 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (colored) to selected 1.280 (colored)

Move -Wcast-qual from WARNS=2 to WARNS=3 (a new level), because it
generates too many false positives that require gross amounts of
workaround, and the other WARNS=2 stuff is quite useful. Per discussion
with simonb & christos.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Oct 19 19:07:48 2001 UTC (22 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.54: +5 -2 lines
Diff to previous 1.54 (colored) to selected 1.280 (colored)

Better version of previous.  Use an .ifdef in this case, so the rule isn't
even defined without YHEADER.  (Otherwise can lead to odd behavior.)

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 19 17:05:26 2001 UTC (22 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) to selected 1.280 (colored)

Make sure .y.h rule knows what to do only if YHEADER is set.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Oct 19 16:28:54 2001 UTC (22 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.52: +5 -12 lines
Diff to previous 1.52 (colored) to selected 1.280 (colored)

Simplify many .if's by collapsing to make :D and :U conditionals.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 19 16:15:40 2001 UTC (22 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.51: +10 -47 lines
Diff to previous 1.51 (colored) to selected 1.280 (colored)

Simplify and collapse a lot of the gooey .l and .y handling cruft here.
Rather than special-case a bunch of stuff, make this always parallel-safe,
and have make call upon the .l.c/.y.c followed by .c.o/.c.lo transforms,
rather than try to go right from .l/.y to .o/.lo.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Oct 9 05:19:04 2001 UTC (22 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored) to selected 1.280 (colored)

Make mtree a host tool and use it when appropriate.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 8 01:00:44 2001 UTC (22 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored) to selected 1.280 (colored)

Add some more WARNS (commented out since they break things)

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 14 11:55:04 2001 UTC (22 years, 8 months ago) by tv
Branch: MAIN
Changes since 1.48: +4 -1 lines
Diff to previous 1.48 (colored) to selected 1.280 (colored)

Add a HOST_CXX and HOST_CXXFLAGS (currently needed for compiling groff on
a cross host).

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jul 4 17:46:06 2001 UTC (22 years, 9 months ago) by scw
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) to selected 1.280 (colored)

Check for MKSOFTFLOAT being defined before testing its value.
Needed for crunchgen(1) generated makefiles (e.g. miniroot builds).

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jun 18 17:04:45 2001 UTC (22 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.46: +6 -1 lines
Diff to previous 1.46 (colored) to selected 1.280 (colored)

Add a new make variable "MKSOFTFLOAT".  If not set to "no", it adds
"-msoft-float" to COPTS and FOPTS, and possibly builds soft-float
library support (port specific).
Defaults to "no".

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 30 04:11:34 2000 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.45: +1 -3 lines
Diff to previous 1.45 (colored) to selected 1.280 (colored)

document host build tools (like rpcgen) in bsd.README.  PR 11839

Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 29 03:18:32 2000 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored) to selected 1.280 (colored)

document MKLOCALE is not a variable to control build behavior.  per PR 11839.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Dec 23 22:47:28 2000 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored) to selected 1.280 (colored)

declare ${MKLOCALE}.  PR11801.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Oct 11 05:45:50 2000 UTC (23 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.280 (colored)

Repair a dual-.if construct that certainly didn't work with
any version of make(1) on my systems...

Revision 1.42 / (download) - annotate - [select for diffs], Tue Oct 10 20:41:20 2000 UTC (23 years, 6 months ago) by is
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.280 (colored)

Format string cleanup, by sommerfeld.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Oct 4 19:27:45 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.40: +8 -1 lines
Diff to previous 1.40 (colored) to selected 1.280 (colored)

If FORMAT_AUDIT is set, and WFORMAT is set and > 1, turn on
-Wnetbsd-format-audit for extra-stringent format checking.
WFORMAT belongs in individual makefiles and/or Makefile.inc files.
FORMAT_AUDIT should go in mk.conf if you're doing format-string auditing.
(set WFORMAT=1 in individual makefiles if a program is
not security critical and is doing bizarre things with
format strings which would be even uglier if rewritten)
FORMAT_AUDIT may go away in time (i.e., default to on)

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 25 06:29:44 2000 UTC (23 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored) to selected 1.280 (colored)

${RPCGEN}, not hard-coded rpcgen

Revision 1.39 / (download) - annotate - [select for diffs], Tue May 9 00:15:55 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.38: +4 -1 lines
Diff to previous 1.38 (colored) to selected 1.280 (colored)

Make the fact that we disable -Wuninitialized explcicit in the Makefile,
rather than relying on a compiler hack to do it for us.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Feb 1 06:00:35 2000 UTC (24 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.280 (colored)

STRIPPROG -> STRIP

Revision 1.37 / (download) - annotate - [select for diffs], Thu Sep 16 00:28:31 1999 UTC (24 years, 7 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored) to selected 1.280 (colored)

Define CONFIG, so it can be overridden for cross-builds.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 21 14:17:07 1999 UTC (24 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored) to selected 1.280 (colored)

Add OBJCOPY

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 8 01:55:38 1999 UTC (24 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: mortalinstall
Changes since 1.34: +8 -2 lines
Diff to previous 1.34 (colored) to selected 1.280 (colored)

Introduce a second level of WARNS for even more paranoia

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jan 31 09:17:20 1999 UTC (25 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.33: +5 -2 lines
Diff to previous 1.33 (colored) to selected 1.280 (colored)

NOGCCERROR disables -Werror.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Nov 1 03:46:28 1998 UTC (25 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.32: +22 -17 lines
Diff to previous 1.32 (colored) to selected 1.280 (colored)

reimplement rev 1.30,1.31 using YPREFIX and LPREFIX instead

Revision 1.32 / (download) - annotate - [select for diffs], Sat Oct 31 17:17:56 1998 UTC (25 years, 5 months ago) by veego
Branch: MAIN
Changes since 1.31: +19 -20 lines
Diff to previous 1.31 (colored) to selected 1.280 (colored)

Backout 1.30 and 1.31 which breaks at least libpcap and pppd.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Oct 30 11:17:08 1998 UTC (25 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.30: +5 -7 lines
Diff to previous 1.30 (colored) to selected 1.280 (colored)

simplify YACCPREFIX rule by using `yacc -o ${.TARGET}' instead of
`yacc -b ${.TARGET:R} ; mv ${TARGET:R}.tab.c ${.TARGET}'. fixes
parallel make of foo.y -> foo.c/foo.h as well

Revision 1.30 / (download) - annotate - [select for diffs], Fri Oct 30 10:45:09 1998 UTC (25 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.29: +16 -13 lines
Diff to previous 1.29 (colored) to selected 1.280 (colored)

implement LEXPREFIX and YACCPREFIX, which allow overriding the `yy'
prefix of generated tokens, and `.yy.{c,h}' suffix in filenames.
this solves the problem i had in [misc/1989] (albiet a different way).

Revision 1.29 / (download) - annotate - [select for diffs], Sun Sep 13 20:56:38 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.28: +7 -7 lines
Diff to previous 1.28 (colored) to selected 1.280 (colored)

Reorganize comments around .m and .c.lo rules

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 27 23:26:37 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored) to selected 1.280 (colored)

Create a STRIPPROG definition to specify a (target) strip program.  Later,
STRIPPROG could be used in preference to "-s" on "install".

Revision 1.27 / (download) - annotate - [select for diffs], Wed Aug 26 19:36:37 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored) to selected 1.280 (colored)

Allow -Werror to be turned off with CWARNFLAGS=-Wno-error ...

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 25 14:57:21 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored) to selected 1.280 (colored)

Introduce CWARNFLAGS, idea from kernel Makefiles, which goes after "-Wall
..." in the CFLAGS and can be set in directory Makefile or mk.conf.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Aug 25 12:04:59 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored) to selected 1.280 (colored)

Back out previous.  -Wuninitialized is disabled in the latest egcs
sources, and -Wno-format-y2k is inserted into the proper Makefiles only
(as this is likely to become a permanent option).

Revision 1.24 / (download) - annotate - [select for diffs], Tue Aug 25 07:46:23 1998 UTC (25 years, 7 months ago) by ross
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored) to selected 1.280 (colored)

Add -Wno-uninitialized -Wno-format-y2k, with an attached XXX

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 17 00:03:32 1998 UTC (25 years, 8 months ago) by tv
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.280 (colored)

"oops": .c.lo rule missed the "-o ${.TARGET}".

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 16 23:55:04 1998 UTC (25 years, 8 months ago) by tv
Branch: MAIN
Changes since 1.21: +17 -2 lines
Diff to previous 1.21 (colored) to selected 1.280 (colored)

Add .c.lo, .l.lo, and .y.lo rules for automatic use of ${HOST_COMPILE.c}.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 27 13:16:52 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +5 -1 lines
Diff to previous 1.20 (colored) to selected 1.280 (colored)

If AUDIT is defined, compile with -D__AUDIT__.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 11 22:12:59 1998 UTC (25 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored) to selected 1.280 (colored)

If DESTDIR is set, tell lint to use "-d ${DESTDIR}/usr/include" (the equiv.
of "-nostdinc -idirafter ${DESTDIR}/usr/include".  Fixes PR #5399.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 9 00:32:36 1998 UTC (26 years ago) by tv
Branch: MAIN
Changes since 1.18: +17 -1 lines
Diff to previous 1.18 (colored) to selected 1.280 (colored)

.y.c <sys.mk> rule fixes.  Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 1 16:58:33 1998 UTC (26 years ago) by tv
Branch: MAIN
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored) to selected 1.280 (colored)

Revert.  This broke too much in the build tree, and a better solution
needs to be created.  (The existing situation breaks a lot too.)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 1 15:23:36 1998 UTC (26 years ago) by tv
Branch: MAIN
Changes since 1.16: +6 -5 lines
Diff to previous 1.16 (colored) to selected 1.280 (colored)

Fix .y rules to DTRT with possibly generated .h files.  See mail on
tech-toolchain for a very detailed explanation of this.  In short, add
a .y.h rule identical to the .y.c rule and make the .y.c rule rename
the .h file; also, clean the .h file in CLEANFILES.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 4 21:12:45 1997 UTC (26 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.15: +1 -4 lines
Diff to previous 1.15 (colored) to selected 1.280 (colored)

Move definitions of: NM, LORDER, TSORT from bsd.sys.mk to sys.mk
so they are more easly used by things like sys/libkern/Makefile.inc
(Besides, all the other tool definitions are in sys.mk)

Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 4 20:31:56 1997 UTC (26 years, 5 months ago) by gwr
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored) to selected 1.280 (colored)

Define LORDER, TSORT

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 30 07:25:35 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.13: +1 -4 lines
Diff to previous 1.13 (colored) to selected 1.280 (colored)

remove lint rules for objective c as lint can't cope

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 28 12:40:18 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.12: +16 -1 lines
Diff to previous 1.12 (colored) to selected 1.280 (colored)

add default rules for Objective C sources (`.m' suffix):
- sys.mk:
	add ${OBJC} and ${OBJCFLAGS} (equivalent to ${CC} and
	${CFLAGS} respectively), and ${COMPILE.m} and ${LINK.m} rules
- bsd.sys.mk:
	add .m, .m.o, and .m.ln rules (as per the C rules in sys.mk).
	it's here, rather than in sys.mk, because `.m' isn't
	exclusively used for Objective C files.
- bsd.lib.mk:
	add .m.o, .m.po, .m.so, and .m.ln rules (as per C)

Revision 1.12 / (download) - annotate - [select for diffs], Sun Oct 12 01:37:50 1997 UTC (26 years, 6 months ago) by mikel
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.280 (colored)

add -Wpointer-arith to flags enabled by WARNS

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 8 13:17:00 1997 UTC (26 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.280 (colored)

Put the `-nostdinc -idirafter ...' in CPPFLAGS, not CFLAGS.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 26 13:24:03 1997 UTC (26 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.280 (colored)

PR/4146: Erik Bertelsen: WARNS was not unsettable in Makefiles

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 1 21:42:55 1997 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored) to selected 1.280 (colored)

Enable extra warnings if WARNS is set

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 31 21:22:01 1997 UTC (26 years, 10 months ago) by cjs
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.280 (colored)

Back out BUILDDIR and NOINSTALL changes.

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 27 18:09:00 1997 UTC (26 years, 10 months ago) by cjs
Branch: MAIN
Branch point for: cjs-build-against-obj-dir
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) to selected 1.280 (colored)

Put include information in CPPFLAGS only (not in CFLAGS or MKDEPFLAGS).
Add note that CPPFLAGS is (or should be) passed to all programs that
pass input through cpp.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 27 17:01:56 1997 UTC (26 years, 10 months ago) by cjs
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.280 (colored)

Make sure mkdep gets correct include directories.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 26 16:36:41 1997 UTC (26 years, 10 months ago) by cjs
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.280 (colored)

Patch for yesterday's batch of `new build system' commits that I forgot
to commit.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 17 06:43:32 1997 UTC (27 years ago) by thorpej
Branch: MAIN
Changes since 1.3: +15 -1 lines
Diff to previous 1.3 (colored) to selected 1.280 (colored)

Add several HOST_* variables.  These identical to their non-HOST_
counterparts, and are used to compile programs that are needed to
compile other programs (see src/bin/sh for an example use).  These
facilitate cross-compiling.

Define an NM variable - the program to use for nm(1)

Revision 1.3 / (download) - annotate - [select for diffs], Wed May 15 19:46:51 1996 UTC (27 years, 11 months ago) by scottr
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored) to selected 1.280 (colored)

If DESTDIR is defined, look for includes in ${DESTDIR}/usr/include,
instead.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 13 01:25:07 1995 UTC (28 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored) to selected 1.280 (colored)

add "CFLAGS += -Werror" to bsd.sys.mk, and update various bits of
documentation to explain bsd.sys.mk's purpose more clearly.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 22 00:45:59 1995 UTC (28 years, 6 months ago) by christos
Branch: MAIN
Diff to selected 1.280 (colored)

Added include file <bsd.sys.mk> that contains lex and yacc "parallel aware"
rules. These rules are not turned on by default; they are enabled by setting
the PARALLEL variable.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>