소스 검색

build: do not set --build if not really cross-compiling (eg. building for

mingw64 on mingw32).
legacy
Sam Hocevar sam 14 년 전
부모
커밋
70e3ae8222
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      build/lol-build

+ 8
- 0
build/lol-build 파일 보기

@@ -74,6 +74,10 @@ configure()
echo "Error: could not find win32 compiler" >&2 echo "Error: could not find win32 compiler" >&2
false false
fi fi
if test "x${MSYSTEM}" = xMINGW64; then
# If using mingw64, we're not really cross-compiling
BUILDFLAGS=
fi
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/contrib/gtkglarea-2.0.1/lib/pkgconfig" PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PWD/contrib/gtkglarea-2.0.1/lib/pkgconfig"
LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/i686-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/i686-w64-mingw32"
LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.14/lib/i686-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.14/lib/i686-w64-mingw32"
@@ -93,6 +97,10 @@ configure()
echo "Error: could not find win64 compiler" >&2 echo "Error: could not find win64 compiler" >&2
false false
fi fi
if test "x${MSYSTEM}" = xMINGW32; then
# If using mingw32, we're not really cross-compiling
BUILDFLAGS=
fi
LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/x86_64-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/glew-1.7.0/lib/x86_64-w64-mingw32"
LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.14/lib/x86_64-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-1.2.14/lib/x86_64-w64-mingw32"
LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-image-1.2.10/lib/x86_64-w64-mingw32" LDFLAGS="$LDFLAGS -L$PWD/contrib/sdl-image-1.2.10/lib/x86_64-w64-mingw32"


불러오는 중...
취소
저장