From: Arvin Schnell Date: Fri, 13 Dec 2013 13:29:00 +0000 (+0100) Subject: - detect lib64 X-Git-Tag: v0.2.0~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdc44d3ac126f6244b5fec270e6f84eefa82182d;p=thirdparty%2Fsnapper.git - detect lib64 --- diff --git a/Makefile.repo b/Makefile.repo index 9522e1c9..7c2f6478 100644 --- a/Makefile.repo +++ b/Makefile.repo @@ -2,8 +2,16 @@ # Makefile.repo for snapper # +# somehow detect if this is a lib or lib64 system +LIB = $(shell gcc -v 2>&1 | sed -n 's,.*--libdir=/usr/\([^ ]*\).*,\1,p') +ifeq ($(LIB),) +LIB = lib +endif + +PREFIX = /usr + configure: all - ./configure + ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB) all: aclocal