Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tools/Makefile

Issue 6823058: Use -mtls-use-call in newlib build. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 $@
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698