Changeset 26593


Ignore:
Timestamp:
2011-04-11T18:06:46+02:00 (7 years ago)
Author:
jow
Message:

[buildroot] rules.mk: properly populate $(LIBGCC_S) for external toolchains

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r26405 r26593  
    111111TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include 
    112112TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib 
     113ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),) 
     114LIBGCC_S_PATH=$(realpath $(wildcard $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)))) 
     115LIBGCC_S=$(if $(LIBGCC_S_PATH),-L$(dir $(LIBGCC_S_PATH)) -lgcc_s) 
     116else 
    113117LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-L$(TOOLCHAIN_DIR)/lib -lgcc_s,$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.a)) 
     118endif 
    114119ifdef CONFIG_USE_UCLIBC 
    115120LIBRPC=-lrpc 
Note: See TracChangeset for help on using the changeset viewer.