clean libnl also after ./configure
authorEliad Peller <eliad@wizery.com>
Sun, 4 May 2014 10:05:57 +0000 (13:05 +0300)
committerEliad Peller <eliad@wizery.com>
Sun, 4 May 2014 10:59:07 +0000 (13:59 +0300)
seems like libnl doesn't auto-clean itself after
reconfiguration, resulting in some build errors.
workaround it by explicitly cleaning it on
configuration as well.

Signed-off-by: Eliad Peller <eliad@wizery.com>
build_wl18xx.sh

index 7894fb453723561004fa9f38dae9ffb289b412e9..a732f37501939b49233abd9f8cbb7661675e50c0 100755 (executable)
@@ -321,7 +321,7 @@ function build_libnl()
        cd_repo libnl
        [ -z $NO_CONFIG ] && ./autogen.sh
        [ -z $NO_CONFIG ] && ./configure --prefix=`path filesystem` --host=${ARCH} CC=${CROSS_COMPILE}gcc AR=${CROSS_COMPILE}ar
-       [ -z $NO_CLEAN ] && make clean
+       ([ -z $NO_CONFIG ] || [ -z $NO_CLEAN ]) && make clean
        [ -z $NO_CLEAN ] && assert_no_error
        make
        assert_no_error