mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 05:29:53 +00:00
on x86_64, install libs to /usr/lib64 if /usr/lib is inexistent. bug reported by Anton Bolshakov
This commit is contained in:
parent
496a62b26b
commit
9f0e6c24ae
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
Block a user