Author: sebor
Date: Fri May 2 17:02:40 2008
New Revision: 652954
URL: http://svn.apache.org/viewvc?rev=652954&view=rev
Log:
2008-05-02 Martin Sebor <[EMAIL PROTECTED]>
* etc/config/vacpp.config (use_tempinc): Cd to TMPDIR before
invoking the compiler to avoid trying to write into the CWD
which may be read only.
Modified:
stdcxx/branches/4.2.x/etc/config/vacpp.config
Modified: stdcxx/branches/4.2.x/etc/config/vacpp.config
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/etc/config/vacpp.config?rev=652954&r1=652953&r2=652954&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/etc/config/vacpp.config (original)
+++ stdcxx/branches/4.2.x/etc/config/vacpp.config Fri May 2 17:02:40 2008
@@ -241,10 +241,11 @@
# check if the -qtemplateregistry option is recognized
-use_tempinc=$(shell echo "int i;" >/tmp/foo.$$$$.c \
+use_tempinc=$(shell cd ${TMPDIR:=/tmp} \
+ && echo "int i;" >foo.$$$$.c \
&& $(CXX) -c -qmaxerr=1:w -qtemplateregistry \
- /tmp/foo.$$$$.c >/dev/null 2>&1; \
- echo $$?; rm /tmp/foo.$$$$.c)
+ foo.$$$$.c >/dev/null 2>&1; \
+ echo $$?; rm foo.$$$$.c)
# template repository/registry name override