mirror of https://github.com/bebbo/amiga-gcc.git
Fix newlib build for FreeBSD
newlib was using 'gcc' if the CC_FOR_BUILD variable wasn't set. So, explicitly set it here to the compiler that we're using.
This commit is contained in:
parent
cec13cba75
commit
ff94f7cd5c
2
Makefile
2
Makefile
|
@ -938,7 +938,7 @@ $(BUILD)/newlib/newlib/libc.a: $(BUILD)/newlib/newlib/Makefile $(NEWLIB_FILES)
|
|||
$(BUILD)/newlib/newlib/Makefile: $(PROJECTS)/newlib-cygwin/newlib/configure $(BUILD)/ndk-include_ndk $(BUILD)/gcc/_done
|
||||
@mkdir -p $(BUILD)/newlib/newlib
|
||||
@if [ ! -f "$(BUILD)/newlib/newlib/Makefile" ]; then \
|
||||
$(L00)"configure newlib"$(L1) cd $(BUILD)/newlib/newlib && $(NEWLIB_CONFIG) CFLAGS="$(CFLAGS_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" $(PROJECTS)/newlib-cygwin/newlib/configure --host=m68k-amigaos --prefix=$(PREFIX) --enable-newlib-io-long-long --enable-newlib-io-c99-formats --enable-newlib-reent-small --enable-newlib-mb --enable-newlib-long-time_t $(L2) \
|
||||
$(L00)"configure newlib"$(L1) cd $(BUILD)/newlib/newlib && $(NEWLIB_CONFIG) CFLAGS="$(CFLAGS_FOR_TARGET)" CC_FOR_BUILD="$(CC)" CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" $(PROJECTS)/newlib-cygwin/newlib/configure --host=m68k-amigaos --prefix=$(PREFIX) --enable-newlib-io-long-long --enable-newlib-io-c99-formats --enable-newlib-reent-small --enable-newlib-mb --enable-newlib-long-time_t $(L2) \
|
||||
; else touch "$(BUILD)/newlib/newlib/Makefile"; fi
|
||||
|
||||
$(PROJECTS)/newlib-cygwin/newlib/configure:
|
||||
|
|
Loading…
Reference in New Issue