Build Lua with all the appropriate flags.
authorGuy Harris <guy@alum.mit.edu>
Wed, 14 Oct 2015 05:19:27 +0000 (22:19 -0700)
committerGuy Harris <guy@alum.mit.edu>
Wed, 14 Oct 2015 05:19:55 +0000 (05:19 +0000)
It doesn't use a configure script, so we have to pass in -arch flags,
minimum version flags, "where's the SDK" flags, etc. by setting MYCFLAGS
and MYLDFLAGS for the make, rather than for the configure script.

Change-Id: I8c95851051cd2a9ddd7a9caf6faccd2e9fd2b4a7
Reviewed-on: https://code.wireshark.org/review/10995
Reviewed-by: Guy Harris <guy@alum.mit.edu>
macosx-setup.sh

index ca4c7af5fed63efa7661594ddf3a764da64d5887..8a1b311df1253c2bff75ccbf9170deceb1db25d1 100755 (executable)
@@ -1252,7 +1252,7 @@ install_lua() {
         [ -f lua-$LUA_VERSION.tar.gz ] || curl -L -O http://www.lua.org/ftp/lua-$LUA_VERSION.tar.gz || exit 1
         gzcat lua-$LUA_VERSION.tar.gz | tar xf - || exit 1
         cd lua-$LUA_VERSION
-        make $MAKE_BUILD_OPTS macosx || exit 1
+        make MYCFLAGS="$CFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" MYLDFLAGS="$LDFLAGS $VERSION_MIN_FLAGS $SDKFLAGS" $MAKE_BUILD_OPTS macosx || exit 1
         $DO_MAKE_INSTALL || exit 1
         cd ..
         touch lua-$LUA_VERSION-done