Skip to content

Commit

Permalink
- detect lib64
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Dec 13, 2013
1 parent b2b5a2f commit bdc44d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile.repo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdc44d3

Please sign in to comment.