瀏覽代碼

build: workaround for AC_TRY_LINK not working with emscripten.

legacy
Sam Hocevar sam 11 年之前
父節點
當前提交
fe5769becd
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      build/lol-build

+ 7
- 1
build/lol-build 查看文件

@@ -173,6 +173,12 @@ configure()
# Ensure we're _really_ on amd64
CXXFLAGS="$CXXFLAGS -m64"
;;
emscripten-*)
# Force cross-compilation because AC_TRY_LINK is going to check
# whether our binaries have the executable bit set.
HOSTFLAGS=--host=none
BUILDFLAGS=--build=`$top_srcdir/.auto/config.guess`
;;
esac
case "$platform" in
ios-arm)
@@ -236,7 +242,7 @@ configure()
PATH="$PATH" PKG_CONFIG_PATH="$PKG_CONFIG_PATH" ./configure $HOSTFLAGS $BUILDFLAGS CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" GTK_LIBS="$GTK_LIBS"
;;
emscripten-*)
./configure CC=emcc CXX=em++ AR=emar RANLIB=emranlib PKG_CONFIG=/bin/false SDL_CONFIG=/bin/false ac_cv_exeext=".${platform##emscripten-}"
./configure $HOSTFLAGS $BUILDFLAGS CC=emcc CXX=em++ AR=emar RANLIB=emranlib PKG_CONFIG=/bin/false SDL_CONFIG=/bin/false ac_cv_exeext=".${platform##emscripten-}"
;;
*)
PATH="$PATH" ./configure CFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS"


Loading…
取消
儲存