summaryrefslogtreecommitdiff
path: root/share/mk
AgeCommit message (Collapse)Author
2023-06-10sets: enhance MAKEVERBOSE supportlukem
Add more messages for various sets operations. Add ${_MKMSG_CREATE} to bsd.own.mk. Enhance maketars to be a bit more verbose even with -q, to make it more obvious why certain operations may be slow. May help debugging PR 47562.
2023-06-05bsd.README: update to reality, sync from mk.conf(5)lukem
Sync user variables from mk.conf(5), sorted. (Arguably this could just refer to mk.conf(5) or share/man/man5/mk.conf.5 and remove the copypasta.) Document NOxxx overrides in own subsection. Unexpand tabs, tweak after.
2023-06-03adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}lukem
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} which works for both clang and gcc, and remove compiler-specific equivalents.
2023-06-03bsd.*.mk: move MKSTRIPSYM default to bsd.own.mklukem
Add default for MKSTRIPSYM=yes to to bsd.own.mk _MKVARS.no. Test ${MKSTRIPSYM} != "no".
2023-06-03bsd.obj.mk: move MKHOSTOBJ to bsd.own.mklukem
Add default for MKHOSTOBJ=no to to bsd.own.mk _MKVARS.no. Simplify bsd.obj.mk check.
2023-06-03bsd.dep.mk: move MKDEPINCLUDES to bsd.own.mklukem
Add default for MKDEPINCLUDES=no to to bsd.own.mk _MKVARS.no. Simplify bsd.dep.mk check.
2023-06-03bsd.*.mk: move MKCLEAN* to bsd.own.mklukem
Move the defaults for MKCLEANSRC and MKCLEANVERIFY from bsd.clean.mk to bsd.own.mk _MKVARS.yes.
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-06-02bsd.own.mk: obsolete non-MK variants MANZ UNPRIVED UPDATElukem
Remove support for variables deprecated 20 years ago by their MK* equivalents.
2023-06-01bsd.own.mk: describe recent convention in commentslukem
2023-06-01bsd.own.mk: MKPERFUSE isn't used anywherelukem
perfuse is built unconditionally, and MKPERFUSE isn't tested anywhere.
2023-06-01bsd.own.mk: MKLLD, MKLLDB, MKMCLINKER are obsoletelukem
MKLLD, MKLLDB, MKMCLINKER aren't used in the build, so remove them. These were obsoleted by joerg@ on 2019-11-11 with the update of LLVM to 10.0.0git (01f3a59).
2023-05-31bsd.own.mk: support ${MACHINE} defaults in MK* = yeslukem
For MK* variables (in _MKVARS.yes), default to MK*.${MACHINE} if MK*.${MACHINE_ARCH} isn't defined. Equivalent to _MKVARS.no change by mrg@ in rev 1.1065 on 2018-06-16.
2023-05-31bsd.own.mk: sort lists. whitespace fixeslukem
Create _NOVARS for the list of NO* variables, for consistency with _MKVARS.yes and _MKVARS.no Format _NOVARS, _MKVARS.yes, and _MKVARS.no with one entry per line, and sort the lists. Simplifies review and adding new entries. Per suggestion from riastradh@ Line up some variable assignments more consistently.
2023-05-29bsd.own.mk: rename NO_ADDR_OF_PACKED_MEMBER to CC_NO_ADDR_OF_PACKED_MEMBERlukem
Add "CC_" prefix to NO_ADDR_OF_PACKED_MEMBER. We now have the following convention: GCC_NO_*: Disable specific warnings from GCC. CLANG_NO_*: Disable specific warnings from Clang. CC_NO_*: Disable specific warnings from both Clang and GCC. This reserves "NO_*" Makefile variables to disable other features. Some space->tab fixes.
2023-05-29bsd.own.mk: sort list of NO* variableslukem
List the NO variables in order, leaving enough room to add more entries, not splitting the next letter after "NO" across a line. No functional change; just prettier and easier to review.
2023-05-28bsd.own.mk: deprecate NOCRYPTOlukem
MKCRYPTO was removed by riastradh@ on 2017-05-22, so the NOCRYPTO override is now unnecessary.
2023-05-28share/mk: finish USE_COMBINE, NOCOMBINE deprecationlukem
Remove the leftover remnants of deprecated USE_COMBINE and NOCOMBINE, as gcc -combine has been EOL for many years. Completes the work done by maya@ on 2019-05-10 in bsd.kmodule.mk rev 1.61.
2023-05-24deprecate SHAREDSTRINGS build optionlukem
Hasn't worked for at least 20 years (and never in the cross-build environment, nor did it work with parallel make), and has never been needed in NetBSD as we don't have the older BSD programs (pascal, pre-nvi ex) that needed mkstr/xstr on PDP-11. PR toolchain/35964
2023-05-23tools/compat: MAKEVERBOSE support in regenlukem
2023-05-22man0: support objdirs, tools, parallel buildslukem
man0 creates files, so write to the the OBJDIR instead of the source directory. Use TOOL_ appropriately. Add MAKEVERBOSE support. Add separate rules to generate: - all.files: the list of all man files to process (based on mkman) - manNpages.files: per-section files from all.files. (based on mkman) - manNpages.ps: per-section .ps from manNpages.files, with per-file MAKEVERBOSE messages to stderr (as before, just prettier). - manNpages.pdf: per-section .pdf from manNpages.ps. Remove the now-obsolete mkman script. Add TOOL_GROPS and _MKSHMSG_FORMAT to <bsd.own.mk>
2023-05-15switch everyone to OpenSSL-3.xchristos
2023-05-14move hppa and powerpc to OpenSSL-3.xchristos
2023-05-14move arm to OpenSSL-3.xchristos
2023-05-14switch alpha to OpenSSL-3.xchristos
2023-05-13switch i386 and m68k to OpenSSL-3.xchristos
2023-05-13compat: Disable relro in 32-bit arm compat.riastradh
Not supported by binutils: ld: warning: -z relro ignored PR toolchain/57405
2023-05-12Fix broken conditionalryoon
2023-05-12switch vax to OpenSSL-3.xchristos
2023-05-11switch sparc64/aarch64 to OpenSSL-3.xchristos
2023-05-11risc-v: use ${MACHINE}-${MACHINE_ARCH} for the default RELEASEMACHINEDIRskrll
Hopefully, this fixes the release binaries being available on cdn/nyftp.
2023-05-10switch amd64 to OpenSSL-3.0.8christos
2023-05-09bsd.lib.mk: Nix trailing whitespace.riastradh
2023-05-08RISC-V: enabled GDBskrll
2023-05-08Allow linking against archives like PROGDPLIBS does.christos
2023-05-08remove stuff accidentally committedchristos
2023-05-07Provide a hook to link in libraries statically in PROGDPLIBS.christos
OpenSSL protects the symbols in the shared object via a linker script, but programs and tests need those protected symbols, so they either must link against the archive, or I need to expose the symbols. For now, I chose to expose the symbols. Note that we cannot use -Bstatic -Lpath -llibrary -Bdynamic because this seems to be broken with collect2 and so we use the path directly.
2023-05-07RISC-V support that works on QEMU with a single hart.skrll
Thanks for Simon Burge for plic(4).
2023-05-07Switch mips64eb back to old binutils too, with new binutils it causesmartin
random autobuild failures (same reason mips64el had been switched back before)
2023-05-01Create the INFODIRFILE if it does not exist, so that we can take a lockchristos
on it. Hopefully fixes a race condition where two parallel makes attempt to create the file at the same time.
2023-04-29Like everywhere else make sure DESTDIR is not empty before using it.christos
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.
2023-04-18switch everyone to openssl.oldchristos
2023-04-16Resolve conflicts for lua 5.4.4 import.nikita
Adjust various files for lua 5.4.4.
2023-04-02switch gdb to gdb.oldchristos
2023-03-30bump XORG_SERVER_TEENY.mrg
2023-03-12PR 57241: switch mips64el back to old binutils for nowmartin
2023-02-20GCC 10 now comes from gcc.old.mrg
2023-02-07fix code attempting to skip adding "-g" if "-g*" already is used.mrg
in bsd.lib.mk there's a check for "MKDEBUG != no" that will add -g to CFLAGS (maybe) and to CSHLIBFLAGS (always), given that it isn't in CFLAGS already.. except the conditional is "||" instead of "&&" and since the MKDEBUG/NODEBUG checks pass, the CFLAGS check isn't even performed. additionally, check CXXFLAGS as well as CFLAGS. this fixes the attempt to use "-g1" in the llvmrt build, which fails because the compile lines end up being "... -g1 .. -g ..", (the "-g" comes from the CSHLIBFLAGS variable in that case.) this reduces the size of llvm-enabled gallium debug by ~1.5GiB on amd64.
2023-02-07bump xorg-server version.mrg