diff options
Diffstat (limited to 'infrastructure/mingw/configure.sh')
-rwxr-xr-x | infrastructure/mingw/configure.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/infrastructure/mingw/configure.sh b/infrastructure/mingw/configure.sh index 5b5d946d..ef67d0d4 100755 --- a/infrastructure/mingw/configure.sh +++ b/infrastructure/mingw/configure.sh @@ -16,14 +16,6 @@ if [ ! -r "$DEP_PATH/lib/libpcreposix.a" \ exit 2 fi -export CC="gcc -mno-cygwin" -export CXX="g++ -mno-cygwin" -export LD="g++ -mno-cygwin" -export CFLAGS="-mno-cygwin -mthreads" -export CXXFLAGS="-mno-cygwin -mthreads" -export LDFLAGS="-mno-cygwin -mthreads" -export LIBS="-lcrypto -lws2_32 -lgdi32" - if [ ! -x "configure" ]; then if ! ./bootstrap; then echo "Error: bootstrap failed, aborting." >&2 @@ -31,7 +23,13 @@ if [ ! -x "configure" ]; then fi fi -if ! ./configure --target=i686-pc-mingw32 "$@"; then +if ! ./configure "$@" --target=i686-pc-mingw32 \ + CFLAGS="-mno-cygwin -mthreads" \ + CPPFLAGS="-mno-cygwin" \ + CXXFLAGS="-mno-cygwin -mthreads" \ + LDFLAGS="-mno-cygwin -mthreads -L${DEP_PATH}/lib" \ + LIBS="-lcrypto -lws2_32 -lgdi32" +then echo "Error: configure failed, aborting." >&2 exit 1 fi |