This patch fixes the cccl script to work with MSYS which now reports
itself as cygwin in MACHTYPE. Same patch was submitted to OVS.
If a older MSYS is used this patch will will not be needed. 

Signed-off-by: Frank Wagner <[email protected]>

---
 build-aux/cccl | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/build-aux/cccl b/build-aux/cccl
index e2426fb3e..855d24c6c 100644
--- a/build-aux/cccl
+++ b/build-aux/cccl
@@ -33,14 +33,22 @@ EOF
     exit $1
 }
 
-case $MACHTYPE in
-    *-msys)
-        slash="-"
-        ;;
-    *)
-        slash="/"
-        ;;
-esac
+
+
+# Check for MSYS which now reports itself as cygwin in MACHTYPE
+if [[ -n "$MSYSTEM" ]]; then
+    slash="-"
+else
+    # fallback to old behavior
+    case $MACHTYPE in
+        *-msys)
+            slash="-"
+            ;;
+        *)
+            slash="/"
+            ;;
+    esac
+fi
 # prog specifies the program that should be run (cl.exe or link.exe)
 # We'll assume cl to start out
 prog=cl
-- 
2.48.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to