posaune
[projects.git] / tools / make / c_configure.sh
index 246f1ed..57b395e 100755 (executable)
@@ -38,6 +38,13 @@ function install_cpp_make {
                echo "  $file \\" >> make.pre
        done
        echo >> make.pre
+       if [ "$DEB_HOST_ARCH" != "$DEB_BUILD_ARCH" ]
+       then
+               #cross compiling
+               echo "PREFIX = $DEB_HOST_GNU_TYPE-" >> make.pre
+               echo "SYSROOT = --sysroot=$HOME/cross" >> make.pre
+       fi
+
        if [ "$ARCH" = "armel" ]
        then
                echo "CXX = arm-linux-gnueabi-g++" >> make.pre