History

Kbuild, lto: Disable LTO for asm-offsets.c

The asm-offset.c technique to fish data out of the assembler file does not work with LTO. Just disable for the asm-offset.c build.

Andi Kleen committed 12 years ago

Commit 1e64ff41 parent 8564ed21 file · +1 −1Browse files

Unified · Split

scripts/Makefile.build+1−1
@@ -198,7 +198,7 @@ $(multi-objs-y:.o=.s) : modname = $(modname-multi) · 197 unmodified lines
198$(multi-objs-y:.o=.lst) : modname = $(modname-multi)198$(multi-objs-y:.o=.lst) : modname = $(modname-multi)
199 199
200quiet_cmd_cc_s_c = CC $(quiet_modtag) $@200quiet_cmd_cc_s_c = CC $(quiet_modtag) $@
201cmd_cc_s_c = $(CC) $(c_flags) -fverbose-asm -S -o $@ $<201cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $<
202 202
203$(obj)/%.s: $(src)/%.c FORCE203$(obj)/%.s: $(src)/%.c FORCE
204 $(call if_changed_dep,cc_s_c)204 $(call if_changed_dep,cc_s_c)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t