Ticket #8786: 0001-always-enable-fhonour-copts.patch

File 0001-always-enable-fhonour-copts.patch, 1.4 KB (added by dev@…, 5 years ago)

patch to always enable -fhonour-copts in rules.mk

  • rules.mk

    From 2bb086743f693304df88b0053c662c9f01211091 Mon Sep 17 00:00:00 2001
    From: Sven <dev@mcbachmann.de>
    Date: Mon, 28 Mar 2011 19:57:26 +0200
    Subject: [PATCH] always enable -fhonour-copts
    
    It was only enabled for local toolchains and breaked shared library
    build of zlib-1.2.5.
    
    Closes #8786.
    
    Signed-off-by: Sven <dev@mcbachmann.de>
    ---
     rules.mk |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/rules.mk b/rules.mk
    index ca76ef4..68f4560 100644
    a b BUILD_LOG_DIR:=$(TOPDIR)/logs 
    108108 
    109109TARGET_PATH:=$(STAGING_DIR_HOST)/bin:$(PATH) 
    110110TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) 
     111TARGET_CFLAGS+= -fhonour-copts 
    111112TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include 
    112113TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib 
    113114LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-L$(TOOLCHAIN_DIR)/lib -lgcc_s,$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.a)) 
    ifndef DUMP 
    120121  ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) 
    121122    -include $(TOOLCHAIN_DIR)/info.mk 
    122123    TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) 
    123     TARGET_CFLAGS+= -fhonour-copts 
    124124    TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include 
    125125    TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib 
    126126    TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH)