Merge pull request #5 from superr/master

Added arch detection to makefile for x86 and x86_64
This commit is contained in:
Pierre-Hugues HUSSON 2015-11-11 21:30:34 +01:00
commit c6be73dba2
4 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
PREFIX ?= $(DESTDIR)/usr
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib/x86_64-linux-gnu
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
LIBDIR ?= libs/x86_64
else
LIBDIR ?= libs/x86
endif
CFLAGS ?= -g -Wall -Werror -Wshadow -O2 -pipe -std=gnu11
LDLIBS=$(LIBDIR)/libsepol.a

Binary file not shown.

BIN
libs/x86_64/libsepol.a Normal file

Binary file not shown.