freebsd-skq/lib/csu
jhb 450a870955 Rework r234502 to include a modified CFLAGS along with ACFLAGS.
On most architectures crt objects are compiled in a multiple-step process
so that sed can be run on the generated assembly.  As the final step,
the C compiler generates an object file from the modified assembly output.
Currently this last step uses $CC with only $ACFLAGS.  However, for other
uses in the tree, $ACFLAGS is meant to include assembly-specific compiler
flags that are in addition to $CFLAGS (see default .S.o rules
bsd.suffixes.mk).  In particular, external toolchains may require
additional flags to select a non-default target which will be present
in CFLAGS but not ACFLAGS.  To support this while still mitigating the
issue with CFLAGS described in r234502, include a modified CFLAGS that
excludes "-g" when assembling the modified assembly files.

Note that normally an assembler ($AS) is used to assemble .s flags to
object files (see bsd.suffixes.mk).  However, llvm-based toolchains do
not currently have a stand-alone assembler.

Reviewed by:	imp
Sponsored by:	DARPA / AFRL
Differential Revision:	https://reviews.freebsd.org/D10085
2017-04-07 19:53:14 +00:00
..
aarch64 Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
amd64 Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
arm Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
common
i386 Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
mips Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
powerpc Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
powerpc64 Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
riscv Rework r234502 to include a modified CFLAGS along with ACFLAGS. 2017-04-07 19:53:14 +00:00
sparc64 Use SRCTOP-relative paths and .CURDIR with :H instead of ".." specified paths 2017-01-20 03:52:16 +00:00
Makefile All FreeBSD platforms are elf: move i386-elf to i386 2015-05-19 21:00:53 +00:00
Makefile.inc Replace realinstall: and META_MODE staging hacks with FILES mechanism. 2015-09-21 18:39:13 +00:00