Kaynağa Gözat

litecross: fix $(TARGET)-based config when value comes from config.mak

commit 03bd65562a509ff86bfe8861f8e51e973bcfdd3b wrongly placed the
logic conditional on $(TARGET) before inclusion of config.mak, so that
it only worked when TARGET was set from the make command line or
environment. reorder to fix.
Rich Felker 9 yıl önce
ebeveyn
işleme
7a0997d196
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      litecross/Makefile

+ 2 - 2
litecross/Makefile

@@ -12,6 +12,8 @@ TOOLCHAIN_CONFIG = $(GCC_CONFIG)
 XGCC_DIR = ../obj_toolchain/gcc
 XGCC_DIR = ../obj_toolchain/gcc
 XGCC = $(XGCC_DIR)/xgcc -B $(XGCC_DIR)
 XGCC = $(XGCC_DIR)/xgcc -B $(XGCC_DIR)
 
 
+-include config.mak
+
 ifneq ($(findstring fdpic,$(TARGET)),)
 ifneq ($(findstring fdpic,$(TARGET)),)
 GCC_CONFIG += --enable-fdpic
 GCC_CONFIG += --enable-fdpic
 endif
 endif
@@ -37,8 +39,6 @@ GCC_CONFIG += --with-float=hard
 endif
 endif
 
 
 
 
--include config.mak
-
 MAKE += MULTILIB_OSDIRNAMES=
 MAKE += MULTILIB_OSDIRNAMES=
 MAKE += INFO_DEPS= infodir=
 MAKE += INFO_DEPS= infodir=
 MAKE += ac_cv_prog_lex_root=lex.yy.c
 MAKE += ac_cv_prog_lex_root=lex.yy.c