Lines Matching +full:build +full:- +full:linux +full:- +full:gcc
1 CFLAGS+= -I${WORLDTMP}/legacy/usr/include
3 LDADD+= -legacy
4 LDFLAGS+= -L${WORLDTMP}/legacy/usr/lib
7 # On MacOS using a non-mac ar will fail the build, similarly on Linux using
32 # Add various -Werror flags to catch missing function declarations
33 CFLAGS+= -Werror=implicit-function-declaration -Werror=implicit-int \
34 -Werror=return-type -Wundef
35 CFLAGS+= -DHAVE_NBTOOL_CONFIG_H=1
36 # This is needed for code that compiles for pre-C11 C standards
37 CWARNFLAGS.clang+=-Wno-typedef-redefinition
38 # bsd.sys.mk explicitly turns on -Wsystem-headers, but that's extremely
39 # noisy when building on Linux.
40 CWARNFLAGS+= -Wno-system-headers
41 CWARNFLAGS.clang+=-Werror=incompatible-pointer-types-discards-qualifiers
43 # b64_pton and b64_ntop is in libresolv on MacOS and Linux:
45 LDADD+=-lresolv
47 .if ${.MAKE.OS} == "Linux"
48 CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/linux
49 CFLAGS+= -D_GNU_SOURCE=1
50 # Needed for sem_init, etc. on Linux (used by usr.bin/sort)
51 LDADD+= -pthread
54 LDADD+= -lfts
58 CFLAGS+= -D_DARWIN_C_SOURCE=1
59 CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/mac
61 # FreeBSD and Linux ar/ranlib
62 ARFLAGS:= -crs
67 CFLAGS+= -idirafter ${SRCTOP}/contrib/libarchive/libarchive
69 .error Unsupported build OS: ${.MAKE.OS}
74 # Add the common compatibility headers after the OS-specific ones.
75 CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/common
86 # make obj on every directory during the build-tools phase.
90 Copy the header to $${WORLDTMP}/legacy in tools/build/Makefile instead. \
97 Copy the header to $${WORLDTMP}/legacy in tools/build/Makefile instead. \
102 # GCC doesn't allow silencing warn_unused_result calls with (void) casts.
103 CFLAGS.gcc+=-Wno-unused-result