Lines Matching +full:gen +full:- +full:2
1 # SPDX-License-Identifier: GPL-2.0
8 UNAME_M := $(shell uname -m)
9 CAN_BUILD_I386 := $(shell ./check_cc.sh $(CC) trivial_32bit_program.c -m32)
11 CAN_BUILD_WITH_NOPIE := $(shell ./check_cc.sh $(CC) trivial_program.c -no-pie)
37 CFLAGS := -O2 -g -std=gnu99 -pthread -Wall
41 CFLAGS += -no-pie
44 define gen-target-rule-32
49 define gen-target-rule-64
57 EXTRA_CFLAGS += -DCAN_BUILD_32
58 $(foreach t,$(TARGETS_C_32BIT_ALL),$(eval $(call gen-target-rule-32,$(t))))
64 EXTRA_CFLAGS += -DCAN_BUILD_64
65 $(foreach t,$(TARGETS_C_64BIT_ALL),$(eval $(call gen-target-rule-64,$(t))))
75 $(CC) -m32 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl -lm
78 $(CC) -m64 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl
80 # x86_64 users should be encouraged to install 32-bit libraries
85 @echo "Warning: you seem to have a broken 32-bit build" 2>&1; \
86 echo "environment. This will reduce test coverage of 64-bit" 2>&1; \
87 echo "kernels. If you are using a Debian-like distribution," 2>&1; \
88 echo "try:"; 2>&1; \
90 echo " apt-get install gcc-multilib libc6-i386 libc6-dev-i386"; \
92 echo "If you are using a Fedora-like distribution, try:"; \
94 echo " yum install glibc-devel.*i686"; \
106 $(OUTPUT)/check_initial_reg_state_32: CFLAGS += -Wl,-ereal_start -static
107 $(OUTPUT)/check_initial_reg_state_64: CFLAGS += -Wl,-ereal_start -static