build: Skip check-export-symbol on Windows
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Sun, 3 Jul 2016 17:14:54 +0000 (17:14 +0000)
committerBen Pfaff <blp@ovn.org>
Sun, 3 Jul 2016 19:34:28 +0000 (12:34 -0700)
This patch makes automake skip the function 'check-export-symbol' under
Windows.

The main reason is that msys does not have an implementation of rev
used by:
https://github.com/openvswitch/ovs/blob/master/datapath/Makefile.am#L34

and can be seen on:
https://ci.appveyor.com/project/blp/ovs/build/1.0.1851#L322

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Co-authored-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
datapath/Makefile.am

index 458fa5b..f2a85bc 100644 (file)
@@ -30,6 +30,7 @@ print-build-modules:
        fi
        @echo "$(build_modules)" | tr '_' '-';
 
+if !WIN32
 COMPAT_GET_FUNCTIONS := find $(top_srcdir)/datapath/linux/compat -name "*.h" \
        -exec sed -n '/^[a-z][a-z]* \*\?[A-Za-z0-9_][A-Za-z0-9_]*([a-z]/p; /^struct [a-z0-9_][a-z0-9_]* \*\?[A-Za-z0-9_][A-Za-z0-9_]*([a-z]/p' {} \; | tr -d '*' | cut -d '(' -f1 | rev | cut -d ' ' -f1 | rev
 COMPAT_GET_EXPORTS := find $(top_srcdir)/datapath/linux/compat -name "*.c" \
@@ -56,3 +57,4 @@ check-export-symbol:
        done
 
 all-local: check-export-symbol
+endif