Skip to content

Commit b32ce8c

Browse files
authored
Use actual prefix from mingw
1 parent 0415750 commit b32ce8c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,15 @@ before_install:
5555
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then pacman-key --refresh-keys; fi
5656
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then pacman -Syuu; fi
5757
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then echo 'all' | pacman -S --needed --noconfirm autoconf autogen automake1.16 libtool pkg-config gnutls libgcrypt libgnutls libgnutls-devel; fi
58-
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then pacman -Ql gnutls ; fi
59-
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then pacman -Ql automake1.16 ; fi
60-
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then pacman -Ql libgnutls-devel ; fi
6158
- curl https://s3.amazonaws.com/libhttpserver/libmicrohttpd_releases/libmicrohttpd-0.9.59.tar.gz -o libmicrohttpd-0.9.59.tar.gz
6259
- tar -xzf libmicrohttpd-0.9.59.tar.gz
6360
- cd libmicrohttpd-0.9.59
6461
- if [[ "$ARM_ARCH_DIR" != "" ]]; then
6562
./configure --build `./config.guess` --host $ARM_ARCH_DIR --disable-examples;
6663
elif [[ "$TRAVIS_OS_NAME" = "windows" ]]; then
67-
./configure --prefix=/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/x86_64-w64-mingw32/ --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --disable-examples --enable-https --enable-shared --enable-static ;
64+
export CPPFLAGS=/usr/include:$CPPFLAGS ;
65+
export LDFLAGS=/usr/lib:$LDFLAGS ;
66+
./configure --prefix=/usr/ --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --disable-examples --enable-https --enable-shared --enable-static ;
6867
else
6968
./configure --disable-examples;
7069
fi

0 commit comments

Comments
 (0)