on x86_64, install libs to /usr/lib64 if /usr/lib is inexistent. bug reported by Anton Bolshakov
This commit is contained in:
parent
1ca65dafc7
commit
02ac24fd1d
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue