On Apr 15, 2014, at 7:29 AM, zw...@apache.org wrote: ... > +# These are currently built separate, as part of building the lib/ tree, > using > +# the normal LuaJIT build system. We are using the .o's directly, instead of > the > +# luajit.a to avoid the linker from optimizing symbols away. We could maybe > +# switch to using the luajit.so, but that involves making sure it installs > safely > +# and cleanly.
Can you elaborate on this? > -if BUILD_LUA_SUPPORT > + > +# On Darwin LuaJIT requires magic link options, otherwise it will crash in > luaL_openlibs() at startup. See > +# http://luajit.org/install.html. > traffic_server_LDFLAGS += @LUA_LUAJIT_LDFLAGS@ > -endif AFAICT nothing ever caused LUA_LUAJIT_LDFLAGS to be set. > > traffic_logcat_SOURCES = logcat.cc > traffic_logcat_LDFLAGS = @EXTRA_CXX_LDFLAGS@ @LIBTOOL_LINK_FLAGS@ >