Pull objtool fix from Thomas Gleixner: "A single fix for objtool so it uses the host C and LD flags and not the target ones" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Support HOSTCFLAGS and HOSTLDFLAGS
Unified · Split
| @@ -31,8 +31,8 @@ INCLUDES := -I$(srctree)/tools/include \ · 30 unmodified lines | ||
| 31 | 31 | -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ |
| 32 | 32 | -I$(srctree)/tools/objtool/arch/$(ARCH)/include |
| 33 | 33 | WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed |
| 34 | −CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) | |
| 35 | −LDFLAGS += -lelf $(LIBSUBCMD) | |
| 34 | +CFLAGS += -Werror $(WARNINGS) $(HOSTCFLAGS) -g $(INCLUDES) | |
| 35 | +LDFLAGS += -lelf $(LIBSUBCMD) $(HOSTLDFLAGS) | |
| 36 | 36 | |
| 37 | 37 | # Allow old libelf to be used: |
| 38 | 38 | elfshdr := $(shell echo '$(pound)include <libelf.h>' | $(CC) $(CFLAGS) -x c -E - | grep elf_getshdr) |