|
@@ -336,8 +336,6 @@ $(eval $(call check-gcc-var,-ffunction-sections))
|
|
|
|
|
|
# Some nice CPU specific optimizations
|
|
# Some nice CPU specific optimizations
|
|
ifeq ($(TARGET_ARCH),i386)
|
|
ifeq ($(TARGET_ARCH),i386)
|
|
-$(eval $(call check-gcc-var,-fomit-frame-pointer))
|
|
|
|
- OPTIMIZATION += $(CFLAG_-fomit-frame-pointer)
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_386)$(CONFIG_486)$(CONFIG_586),y)
|
|
ifeq ($(CONFIG_386)$(CONFIG_486)$(CONFIG_586),y)
|
|
# TODO: Change this to a gcc version check. This bug
|
|
# TODO: Change this to a gcc version check. This bug
|
|
@@ -662,6 +660,9 @@ endif
|
|
ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"")
|
|
ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"")
|
|
CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS))
|
|
CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS))
|
|
endif
|
|
endif
|
|
|
|
+ifeq ($(TARGET_ARCH),i386)
|
|
|
|
+CFLAGS += -fno-omit-frame-pointer
|
|
|
|
+endif
|
|
ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),"")
|
|
ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),"")
|
|
LDFLAGS += $(call qstrip,$(UCLIBC_EXTRA_LDFLAGS))
|
|
LDFLAGS += $(call qstrip,$(UCLIBC_EXTRA_LDFLAGS))
|
|
endif
|
|
endif
|