Index: Makefile
--- Makefile.orig	2017-05-01 20:11:00.000000000 +0200
+++ Makefile	2018-11-02 00:02:22.022523000 +0100
@@ -32,15 +32,16 @@
 INSTALL_BIN=   $(DPREFIX)/bin
 INSTALL_LIB=   $(DPREFIX)/$(MULTILIB)
 INSTALL_SHARE= $(DPREFIX)/share
-INSTALL_INC=   $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER)
+INSTALL_INC=   $(DPREFIX)/include/luajit
+INSTALL_MANDIR=$(DPREFIX)/man
 
-INSTALL_LJLIBD= $(INSTALL_SHARE)/luajit-$(VERSION)
+INSTALL_LJLIBD= $(INSTALL_SHARE)/luajit
 INSTALL_JITLIB= $(INSTALL_LJLIBD)/jit
 INSTALL_LMODD= $(INSTALL_SHARE)/lua
 INSTALL_LMOD= $(INSTALL_LMODD)/$(ABIVER)
 INSTALL_CMODD= $(INSTALL_LIB)/lua
 INSTALL_CMOD= $(INSTALL_CMODD)/$(ABIVER)
-INSTALL_MAN= $(INSTALL_SHARE)/man/man1
+INSTALL_MAN= $(INSTALL_MANDIR)/man1
 INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
 
 INSTALL_TNAME= luajit-$(VERSION)
Index: etc/luajit.pc
--- etc/luajit.pc.orig	2017-05-01 20:11:00.000000000 +0200
+++ etc/luajit.pc	2018-11-02 00:02:47.948327000 +0100
@@ -10,7 +10,7 @@
 exec_prefix=${prefix}
 libdir=${exec_prefix}/${multilib}
 libname=luajit-${abiver}
-includedir=${prefix}/include/luajit-${majver}.${minver}
+includedir=${prefix}/include/luajit
 
 INSTALL_LMOD=${prefix}/share/lua/${abiver}
 INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver}
@@ -21,5 +21,5 @@
 Version: ${version}
 Requires:
 Libs: -L${libdir} -l${libname}
-Libs.private: -Wl,-E -lm -ldl
+Libs.private: -Wl,-E -lm
 Cflags: -I${includedir}
Index: src/Makefile
--- src/Makefile.orig	2017-05-01 20:11:00.000000000 +0200
+++ src/Makefile	2018-11-02 00:02:22.022788000 +0100
@@ -478,7 +478,7 @@
 
 LUAJIT_O= luajit.o
 LUAJIT_A= libluajit.a
-LUAJIT_SO= libluajit.so
+LUAJIT_SO=
 LUAJIT_T= luajit
 
 ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T)
