use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / build-all
index 86b7f9d..9867583 100755 (executable)
@@ -19,13 +19,14 @@ set -e
 
 confflags="-C --enable-maintainer-mode --prefix=/usr --sysconfdir=/etc --localstatedir=/var"
 configure="`pwd`/configure $confflags"
-make=eval\ "${CLEAN:+make -j2 silent.clean}${CLEAN:-:}; \
+make=eval\ "${CLEAN:+make -j2 silent.clean;} \
            echo -e \"== executing 'make all'...\" && \
            make -j2 ${SILENT:+-s silent.}all && \
            echo -e \"\n== executing 'make check'...\" && \
            make -j2 ${SILENT:+-s silent.}check"
 
 LANG=C
+CPPFLAGS='-D_FORTIFY_SOURCE=99'
 
 ## Usage: xtermTitle <title>
 function xtermTitle
@@ -53,11 +54,13 @@ function operate()
 
 case "$1" in
     dist)
-       test -e Makefile || ./configure $confflags
+       test -e Makefile || \
+           CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3' CPPFLAGS=$CPPFLAGS \
+           ./configure $confflags
        $make
        exit
        ;;
-    debian-woody|debian-sarge|fc-1-90|fc-1|fc-2)
+    debian-woody|debian-sarge|fc-1-90|fc-1|fc-2|fc-3)
        cat util-vserver-"$2".tar.bz2 | \
            ssh $1 "cd /tmp && rm -rf /tmp/util-vserver-* && \
                    tar xjf - && cd util-vserver-$2 && \
@@ -80,9 +83,9 @@ test -d "Build" || {
     ln -sf $d Build
 }
 
-operate Build/diet-noopt   CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'
-operate Build/diet-opt     --enable-release
-operate Build/nodiet-noopt --disable-dietlibc CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3' 
-operate Build/nodiet-opt   --enable-release --disable-dietlibc
-operate Build/gcc32-opt    --enable-release --disable-dietlibc CC='ccache gcc32'  CXX='ccache g++'
-operate Build/gcc35-opt    --enable-release --disable-dietlibc CC='ccache gcc35'  CXX='ccache g++35'
+operate Build/diet-noopt                                       CPPFLAGS=$CPPFLAGS CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3'
+operate Build/diet-opt     --enable-release                    CPPFLAGS=$CPPFLAGS
+operate Build/nodiet-noopt --disable-dietlibc                  CPPFLAGS=$CPPFLAGS CFLAGS='-O0 -g3' CXXFLAGS='-O0 -g3' 
+operate Build/nodiet-opt   --enable-release --disable-dietlibc CPPFLAGS=$CPPFLAGS
+operate Build/gcc32-opt    --enable-release --disable-dietlibc CPPFLAGS=$CPPFLAGS CC='ccache gcc32'  CXX='ccache g++'
+operate Build/gcc33-opt    --enable-release --disable-dietlibc CPPFLAGS=$CPPFLAGS CC='ccache gcc33'  CXX='ccache g++33'