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)
36 CFLAGS := -O2 -g -std=gnu99 -pthread -Wall
40 CFLAGS += -no-pie
43 define gen-target-rule-32
48 define gen-target-rule-64
56 EXTRA_CFLAGS += -DCAN_BUILD_32
57 $(foreach t,$(TARGETS_C_32BIT_ALL),$(eval $(call gen-target-rule-32,$(t))))
63 EXTRA_CFLAGS += -DCAN_BUILD_64
64 $(foreach t,$(TARGETS_C_64BIT_ALL),$(eval $(call gen-target-rule-64,$(t))))
74 $(CC) -m32 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl -lm
77 $(CC) -m64 -o $@ $(CFLAGS) $(EXTRA_CFLAGS) $^ -lrt -ldl
79 # x86_64 users should be encouraged to install 32-bit libraries
84 @echo "Warning: you seem to have a broken 32-bit build" 2>&1; \
85 echo "environment. This will reduce test coverage of 64-bit" 2>&1; \
86 echo "kernels. If you are using a Debian-like distribution," 2>&1; \
87 echo "try:"; 2>&1; \
89 echo " apt-get install gcc-multilib libc6-i386 libc6-dev-i386"; \
91 echo "If you are using a Fedora-like distribution, try:"; \
93 echo " yum install glibc-devel.*i686"; \
105 $(OUTPUT)/check_initial_reg_state_32: CFLAGS += -Wl,-ereal_start -static
106 $(OUTPUT)/check_initial_reg_state_64: CFLAGS += -Wl,-ereal_start -static