preserve OPTS_LDXX when update its value in conv-mach-pre.sh
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 16 Jan 2005 06:35:23 +0000 (06:35 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 16 Jan 2005 06:35:23 +0000 (06:35 +0000)
build

diff --git a/build b/build
index e775614b99e1e40f150d88743fa70f4350afe6b2..3d3f14c378679acbf00d7fafcebd79b6d1558e87 100755 (executable)
--- a/build
+++ b/build
@@ -338,13 +338,13 @@ echo "Generating $ConvUsr"
 echo > $ConvUsr
 if test -n "$LIBDIR" 
 then
-  echo "OPTS_LD=\"$LIBDIR\"" >> $ConvUsr
-  echo "OPTS_LDXX=\"$LIBDIR\"" >> $ConvUsr
+  echo 'OPTS_LD="$OPTS_LD '$LIBDIR'"' >> $ConvUsr
+  echo 'OPTS_LDXX="$OPTS_LDXX '$LIBDIR'"' >> $ConvUsr
 fi
 if test -n "$INCDIR" 
 then
-  echo "OPTS_CC=\"$INCDIR\"" >> $ConvUsr
-  echo "OPTS_CXX=\"$INCDIR\"" >> $ConvUsr
+  echo 'OPTS_CC="$OPTS_CC '$INCDIR'"' >> $ConvUsr
+  echo 'OPTS_CXX="$OPTS_CXX '$INCDIR'"' >> $ConvUsr
 fi
 chmod +x $ConvUsr