]> err.no Git - yubikey-personalization/commitdiff
have to set CC again for windows builds..
authorKlas Lindfors <klas@yubico.com>
Mon, 22 Apr 2013 08:43:38 +0000 (10:43 +0200)
committerKlas Lindfors <klas@yubico.com>
Mon, 22 Apr 2013 08:54:14 +0000 (10:54 +0200)
build-and-test.sh

index 3b22cfe7b0098d2cba37c7b6ffea6ab99b3e146b..48b58e089d5f1381671dd0cb73f32e0e471d5cca 100755 (executable)
@@ -9,6 +9,12 @@ if [ "x$LIBUSB" = "xwindows" ]; then
     ./configure --with-backend=stub
     touch ChangeLog
     make dist
+
+    if [ "x$ARCH" = "x32" ]; then
+        export CC=i686-w64-mingw32-gcc
+    else
+        export CC=x86_64-w64-mingw32-gcc
+    fi
     make -f ykpers4win.mk ykpers4win${ARCH} `grep ^VERSION Makefile|sed 's/ = /=/'`
 else
     ./configure --with-backend=$LIBUSB