From 519ef0cba7ebceb99e727da9655692d137854188 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 9 Jul 2013 17:25:05 +0200 Subject: [PATCH] Add support for multilib distro builds. --- Makefile | 6 ++++-- doc/install.html | 4 +++- etc/luajit.pc | 5 +++-- src/Makefile | 13 ++++++++++--- src/luaconf.h | 48 +++++++++++++++++++++++++++++++----------------- 5 files changed, 51 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 8883503f..e56b457e 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,12 @@ ABIVER= 5.1 # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path! # export PREFIX= /usr/local +export MULTILIB= lib ############################################################################## DPREFIX= $(DESTDIR)$(PREFIX) INSTALL_BIN= $(DPREFIX)/bin -INSTALL_LIB= $(DPREFIX)/lib +INSTALL_LIB= $(DPREFIX)/$(MULTILIB) INSTALL_SHARE= $(DPREFIX)/share INSTALL_INC= $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER) @@ -73,7 +74,8 @@ INSTALL_X= install -m 0755 INSTALL_F= install -m 0644 UNINSTALL= $(RM) LDCONFIG= ldconfig -n -SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|" +SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|" \ + -e "s|^multilib=.*|multilib=$(MULTILIB)|" FILE_T= luajit FILE_A= libluajit.a diff --git a/doc/install.html b/doc/install.html index faf19c43..b7bf75ce 100644 --- a/doc/install.html +++ b/doc/install.html @@ -565,9 +565,11 @@ for a regular distribution build: