a296fd7
--- trafficserver-5.3.0/lib/Makefile.am.orig	2015-06-22 01:14:08.523059091 +0100
a296fd7
+++ trafficserver-5.3.0/lib/Makefile.am	2015-06-22 01:14:22.498322039 +0100
a296fd7
@@ -31,26 +31,3 @@
a296fd7
 endif
a296fd7
 
a296fd7
 DIST_SUBDIRS = $(SUBDIRS)
a296fd7
-
a296fd7
-# Some special hacks around building the luajit.
a296fd7
-#
a296fd7
-#  - Copy the luajit source tree if we're doing out-of-source builds
a296fd7
-#  - Upon clean, remove the luajit tree from the out-of-source build tree
a296fd7
-#
a296fd7
-# Note: The LUA_LDFLAGS is a bit of a hack, since LuaJIT on OmniOS needs
a296fd7
-#       the -m64 flag. See configure.ac.
a296fd7
-#
a296fd7
-if BUILD_LUAJIT
a296fd7
-LUA_CFLAGS=$(CFLAGS) $(LUAJIT_CFLAGS) -DLUA_COMPAT_ALL -DLUA_USE_POSIX -DLUA_USE_DLOPEN
a296fd7
-
a296fd7
-all-local:
a296fd7
-	@echo "Making all in luajit"
a296fd7
-	test -d "$(top_srcdir)/$(subdir)/luajit/src" || (cd "$(top_srcdir)" && git submodule update --init)
a296fd7
-	test -d "$(top_builddir)/$(subdir)/luajit/src" || cp -rf "$(srcdir)/luajit" "$(top_builddir)/$(subdir)/"
a296fd7
-	cd luajit && $(MAKE) $(AM_MAKEFLAGS) BUILDMODE="static" PREFIX="$(prefix)" CC="$(CC)" \
a296fd7
-	                     CFLAGS="$(LUA_CFLAGS)" LDFLAGS="@LUA_LDFLAGS@"
a296fd7
-
a296fd7
-clean-local:
a296fd7
-	test "$(top_srcdir)" != "$(top_builddir)" || (cd "$(top_builddir)/$(subdir)/luajit" && $(MAKE) clean)
a296fd7
-	test "$(top_srcdir)" = "$(top_builddir)" || rm -rf "$(top_builddir)/$(subdir)/luajit"
a296fd7
-endif