on x86_64, install libs to /usr/lib64 if /usr/lib is inexistent. bug reported by Anton Bolshakov

This commit is contained in:
Nguyen Anh Quynh 2013-12-25 22:47:28 +08:00
parent 496a62b26b
commit 9f0e6c24ae

View File

@ -14,7 +14,13 @@ LDFLAGS += -shared
PREFIX ?= /usr
DESTDIR ?=
INCDIR = $(DESTDIR)$(PREFIX)/include
LIBDIR = $(DESTDIR)$(PREFIX)/lib
# on x86_64, we might have /usr/lib64 directory instead of /usr/lib
MACHINE := $(shell uname -m)
ifeq ($(MACHINE), x86_64)
if [ ! -d $(LIBDIR)" ]; then LIBDIR = $(DESTDIR)$(PREFIX)/lib64; fi
endif
INSTALL_DATA ?= install -m0644
INSTALL_LIBRARY ?= install -m0755