X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=88d423f2f63723562a68f095efbc4b0b61d8cb2c;hb=0d3cbc15b646444a41f5e5974b0235f6d8d1279d;hp=85ab9347d2dce73fe6fad0c4e8e45b55a66449eb;hpb=506bb5af8b11f1a1f1fba00d801e75edc6b6f98b;p=attic%2Ftoolchain-noeabi.git diff --git a/Makefile b/Makefile index 85ab934..88d423f 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,7 @@ $(CLFS)/usr/include/libiberty.h: $(WORK)/build-binutils AR=ar AS=as \ $(WORK)/binutils-$(BINUTILS_VERSION)/configure --prefix=$(CROSSTOOLS) \ --host=$(HOST) --target=$(TARGET) --with-sysroot=$(CLFS) \ - --disable-nls --enable-shared --disable-multilib --nfp && \ + --disable-nls --enable-shared --disable-multilib && \ make configure-host && make && make install || exit 1 cp -va $(WORK)/binutils-$(BINUTILS_VERSION)/include/libiberty.h $(CLFS)/usr/include touch $(CLFS)/usr/include/libiberty.h @@ -150,7 +150,6 @@ $(CROSSTOOLS)/lib/gcc: $(WORK)/build-gcc-static $(WORK)/gcc-$(GCC_VERSION) --build=$(HOST) --host=$(HOST) --target=$(TARGET) \ --disable-multilib --disable-nls \ --without-headers --enable-__cxa_atexit --enable-symvers=gnu --disable-decimal-float \ - --nfp --without-fp --with-softfloat-support=internal \ --disable-libgomp --disable-libmudflap --disable-libssp \ --with-mpfr=$(CROSSTOOLS) --with-gmp=$(CROSSTOOLS) \ --disable-shared --disable-threads --enable-languages=c && \ @@ -198,7 +197,7 @@ $(CLFS)/usr/lib/libc.so: $(WORK)/build-glibc $(WORK)/glibc-$(GLIBC_VERSION) $(WORK)/glibc-$(GLIBC_VERSION)/configure --prefix=/usr \ --libexecdir=/usr/lib/glibc --host=$(TARGET) --build=$(HOST) \ --disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.0 \ - --with-__thread --with-binutils=$(CROSSTOOLS)/bin --with-fp=no \ + --with-__thread --with-binutils=$(CROSSTOOLS)/bin \ --with-headers=$(CLFS)/usr/include --cache-file=config.cache && \ make && make install || exit 1 touch $(CLFS)/usr/lib/libc.so @@ -224,7 +223,7 @@ $(CLFS)/lib/gcc: $(WORK)/build-gcc-final $(WORK)/gcc-$(GCC_VERSION) AR=ar LDFLAGS="-Wl,-rpath,$(CROSSTOOLS)/lib" \ $(WORK)/gcc-$(GCC_VERSION)/configure --prefix=$(CROSSTOOLS) \ --build=$(HOST) --host=$(HOST) --target=$(TARGET) \ - -with-fp=no --with-headers=$(CLFS)/usr/include \ + --with-headers=$(CLFS)/usr/include \ --disable-multilib --with-sysroot=$(CLFS) --disable-nls \ --enable-languages=c,c++ --enable-__cxa_atexit \ --with-mpfr=$(CROSSTOOLS) --with-gmp=$(CROSSTOOLS) \ @@ -243,28 +242,18 @@ gcc-final-distclean: gcc-final-clean # TEST THE TOOLCHAIN -$(WORK)/build-test: - mkdir -p $(WORK)/build-test - touch $(WORK)/build-test +$(WORK)/test: $(WORK)/test.c + export PATH=$$PATH:$(CROSSTOOLS)/bin && \ + unset CFLAGS && unset CXXFLAGS && unset CC && \ + AR=ar LDFLAGS="-Wl,-rpath,$(CROSSTOOLS)/lib" \ + $(TARGET)-gcc -Wall -o $(WORK)/test $(WORK)/test.c + [ "`file -b $(WORK)/test | cut -d',' -f2 | sed 's| ||g'`" = "ARM" ] || exit 1 + touch $(WORK)/test -$(WORK)/build-test/hello.c: $(WORK)/build-test - echo '#include ' > $(WORK)/build-test/hello.c - echo 'int main(int argc,char ** argv){printf("Hello World!\n");return 0;}' >> $(WORK)/build-test/hello.c - touch $(WORK)/build-test/hello.c - -$(WORK)/build-test/hello: $(WORK)/build-test/hello.c - cd $(WORK)/build-test && \ - export PATH=$$PATH:$(CROSSTOOLS)/bin && \ - unset CFLAGS && unset CXXFLAGS && unset CC && \ - AR=ar LDFLAGS="-Wl,-rpath,$(CROSSTOOLS)/lib" \ - $(TARGET)-gcc -Wall -o hello hello.c - [ "`file -b $(WORK)/build-test/hello | cut -d',' -f2 | sed 's| ||g'`" = "ARM" ] || exit 1 - touch $(WORK)/build-test/hello - -test: gcc-final $(WORK)/build-test/hello +test: gcc-final $(WORK)/test test-clean: - rm -vrf $(WORK)/build-test + rm -vrf $(WORK)/test test-distclean: test-clean