anchor.diff:            -DCMAKE_INSTALL_PREFIX:PATH=${SYS_ROOT} \
             -DBUILD_SHARED_LIBS:BOOL=true . && \
       make && \
  -    make install
  +    make install && \
  +    cd /usr/src && \
  +    rm -rf /usr/src/freetype
   
   #build alsa cross (jdk cross dep)
   WORKDIR /usr/src/alsa
   RUN CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gcc ./configure --host=${CROSS_TRIPLE} --prefix=${SYS_ROOT} && \
       make && \
  -    make install
  +    make install && \
  +    cd /usr/src && \
  +    rm -rf /usr/src/alsa
   
   #build zlib cross (X cross dep)
   WORKDIR /usr/src/zlib
   RUN AR=${CROSS_TRIPLE}-ar CC=${CROSS_TRIPLE}-gcc RANLIB=${CROSS_TRIPLE}-ranlib ./configure --prefix=${SYS_ROOT} && \
       make && \
  -    make install
  +    make install && \
  +    cd /usr/src && \
  +    rm -rf /usr/src/zlib
   
   #build libpng cross (X cross dep)
   WORKDIR /usr/src/png
   RUN LDFLAGS="-L${SYS_ROOT}/usr/local/lib" CPPFLAGS="-I${SYS_ROOT}/usr/local/include" ./configure --prefix=${SYS_ROOT}  --host=${CROSS_TRIPLE} && \
       make && \
  -    make install
  +    make install && \
  +    cd /usr/src && \
  +    rm -rf /usr/src/png
   
   #build expat cross (X cross dep)
   WORKDIR /usr/src/expat
   RUN AR=${CROSS_TRIPLE}-ar CC=${CROSS_TRIPLE}-gcc ./configure --prefix=${SYS_ROOT} --host=${CROSS_TRIPLE} && \
       make && \
  -    make install
  +    make install && \
  +    cd /usr/src && \
  +    rm -rf /usr/src/expat
   
   #build openssl cross (X cross dep)
   WORKDIR /usr/src/openssl
   RUN ./Configure dist --prefix=${SYS_ROOT} && \
       make CC="${CROSS_TRIPLE}-gcc" AR="${CROSS_TRIPLE}-ar r" RANLIB="${CROSS_TRIPLE}-ranlib" && \
  -    make CC="${CROSS_TRIPLE}-gcc" AR="${CROSS_TRIPLE}-ar r" RANLIB="${CROSS_TRIPLE}-ranlib" install_sw
  +    make CC="${CROSS_TRIPLE}-gcc" AR="${CROSS_TRIPLE}-ar r" RANLIB="${CROSS_TRIPLE}-ranlib" install_sw && \
  +    cd /usr/src && \
  +    rm -rf /usr/src/openssl
   
   #build X cross (jdk cross dep)
   WORKDIR /usr/src/xorg
  
positive.code:                 --with-jvm-variants=zero \
                  --disable-debug-symbols \
                  --with-jvm-interpreter=cpp \
                  --with-extra-ldflags="-L${SYS_ROOT}/lib/ -Wl,--rpath -Wl,${SYS_ROOT}/lib/"
  RUN make clean all images profiles CONF=linux-arm-normal-zero-release
  
  
negative.code: RUN ./autogen.sh && \
      ./configure --host=${CROSS_TRIPLE} --with-sysroot=${SYS_ROOT} --prefix=${SYS_ROOT} && \
      make && \
      make install && \
      cd /usr/src && \
      rm -rf /usr/src/libffi
  
  #build freetype cross (jkd cross dep)
  WORKDIR /usr/src/freetype
  