Changeset 28175 for trunk/rules.mk


Ignore:
Timestamp:
2011-09-05T21:29:22+02:00 (5 years ago)
Author:
jow
Message:

[buildroot] rules.mk: provide a LIBGCC_A variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r27771 r28175  
    114114LIBGCC_S_PATH=$(realpath $(wildcard $(call qstrip,$(CONFIG_LIBGCC_ROOT_DIR))/$(call qstrip,$(CONFIG_LIBGCC_FILE_SPEC)))) 
    115115LIBGCC_S=$(if $(LIBGCC_S_PATH),-L$(dir $(LIBGCC_S_PATH)) -lgcc_s) 
    116 else 
    117 LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-L$(TOOLCHAIN_DIR)/lib -lgcc_s,$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.a)) 
     116LIBGCC_A=$(realpath $(wildcard $(dir $(LIBGCC_S_PATH))/gcc/*/*/libgcc.a)) 
     117else 
     118LIBGCC_A=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.a) 
     119LIBGCC_S=$(if $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so),-L$(TOOLCHAIN_DIR)/lib -lgcc_s,$(LIBGCC_A)) 
    118120endif 
    119121ifdef CONFIG_USE_UCLIBC 
Note: See TracChangeset for help on using the changeset viewer.