mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
Added arch detection to makefile for x86 and x86_64
This commit is contained in:
parent
0f4c0b95e2
commit
ccf293906a
9
Makefile
9
Makefile
@ -1,6 +1,9 @@
|
|||||||
PREFIX ?= $(DESTDIR)/usr
|
LBITS := $(shell getconf LONG_BIT)
|
||||||
BINDIR ?= $(PREFIX)/bin
|
ifeq ($(LBITS),64)
|
||||||
LIBDIR ?= $(PREFIX)/lib/x86_64-linux-gnu
|
LIBDIR ?= libs/x86_64
|
||||||
|
else
|
||||||
|
LIBDIR ?= libs/x86
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS ?= -g -Wall -Werror -Wshadow -O2 -pipe -std=gnu11
|
CFLAGS ?= -g -Wall -Werror -Wshadow -O2 -pipe -std=gnu11
|
||||||
LDLIBS=$(LIBDIR)/libsepol.a
|
LDLIBS=$(LIBDIR)/libsepol.a
|
||||||
|
Binary file not shown.
BIN
libs/x86_64/libsepol.a
Normal file
BIN
libs/x86_64/libsepol.a
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user