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 37e13e6 commit f5c447f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile.repo
Expand Up @@ -2,8 +2,16 @@
# Makefile.repo for libstorage
#

# 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 f5c447f

Please sign in to comment.