Chromium Code Reviews| Index: tools/Makefile |
| diff --git a/tools/Makefile b/tools/Makefile |
| index 20d688b0537028c1e2ee712c2ddc2e29deaf7a64..4b2baf94a8c0b053787ee1e9e51dfe8ba0ecba05 100644 |
| --- a/tools/Makefile |
| +++ b/tools/Makefile |
| @@ -450,54 +450,30 @@ BUILD/stamp-$(CROSSARCH)-pregcc-standalone: \ |
| # NOTE: removes the default pthread.h to enable correct install |
| # by the Native Client threads package build. |
| ################################################################## |
| + |
| +NEWLIB_CFLAGS = -O2 -D_I386MACH_ALLOW_HW_INTERRUPTS -mtls-use-call |
| + |
| BUILD/stamp-$(CROSSARCH)-newlib: | SRC/newlib BUILD |
| rm -rf BUILD/build-newlib-$(CROSSARCH) |
| mkdir BUILD/build-newlib-$(CROSSARCH) |
| ../src/trusted/service_runtime/export_header.py ../src/trusted/service_runtime/include \ |
| SRC/newlib/newlib/libc/sys/nacl |
| - if [ "x$(CROSSARCH)" = "xnacl64" ] ; then \ |
| - cd BUILD/build-newlib-$(CROSSARCH) && \ |
| - PATH=$(BUILDPATH) \ |
| - CFLAGS="-O2" \ |
| - ../../SRC/newlib/configure \ |
| - --disable-libgloss \ |
| - --enable-newlib-iconv \ |
| - --enable-newlib-io-long-long \ |
| - --enable-newlib-io-long-double \ |
| - --enable-newlib-io-c99-formats \ |
| - --enable-newlib-mb \ |
| - --prefix=$(SDKROOT) \ |
| - --target=$(CROSSARCH) && \ |
| - cd ../.. ; \ |
| - PATH=$(BUILDPATH) \ |
| - $(MAKE) -C BUILD/build-newlib-$(CROSSARCH) \ |
| - CCASFLAGS="-D_I386MACH_ALLOW_HW_INTERRUPTS" \ |
| - CFLAGS_FOR_TARGET="-m64 -O2" \ |
| - CXXFLAGS_FOR_TARGET="-m64 -O2" \ |
| - all ; \ |
| - else \ |
| - cd BUILD/build-newlib-$(CROSSARCH) && \ |
| - PATH=$(BUILDPATH) \ |
| - CFLAGS="-O2" \ |
| - ../../SRC/newlib/configure \ |
| - --disable-libgloss \ |
| - --enable-newlib-iconv \ |
| - --enable-newlib-io-long-long \ |
| - --enable-newlib-io-long-double \ |
| - --enable-newlib-io-c99-formats \ |
| - --enable-newlib-mb \ |
| - --prefix=$(SDKROOT) \ |
| - --target=$(CROSSARCH) ; \ |
| - cd ../.. ; \ |
| - PATH=$(BUILDPATH) \ |
| - $(MAKE) -C BUILD/build-newlib-$(CROSSARCH) \ |
| - CFLAGS_FOR_TARGET="-m32 -O2" \ |
| - CXXFLAGS_FOR_TARGET="-m32 -O2" \ |
| - all ; \ |
| - fi |
| - PATH=$(BUILDPATH) \ |
| - $(MAKE) -C BUILD/build-newlib-$(CROSSARCH) \ |
| - DESTDIR=$(DESTDIR) install |
| + PATH=$(BUILDPATH); \ |
|
Mark Seaborn
2011/04/11 22:57:32
"&&" instead of ";"? (This could fail if $(BUILDP
|
| + cd BUILD/build-newlib-$(CROSSARCH) && \ |
| + ../../SRC/newlib/configure \ |
| + --disable-libgloss \ |
| + --enable-newlib-iconv \ |
| + --enable-newlib-io-long-long \ |
| + --enable-newlib-io-long-double \ |
| + --enable-newlib-io-c99-formats \ |
| + --enable-newlib-mb \ |
| + --prefix=$(SDKROOT) \ |
| + CFLAGS='-O2' \ |
| + CFLAGS_FOR_TARGET='$(NEWLIB_CFLAGS)' \ |
| + CXXFLAGS_FOR_TARGET='$(NEWLIB_CFLAGS)' \ |
| + --target=$(CROSSARCH) && \ |
| + $(MAKE) && \ |
| + $(MAKE) DESTDIR=$(DESTDIR) install |
| rm $(DESTDIR)$(SDKROOT)/$(CROSSARCH)/include/pthread.h |
| touch $@ |