Add CROSS_PREFIX var to make cross-compilation easier

This commit is contained in:
Joey Parrish 2016-10-30 10:50:49 -07:00
parent cf372fa5db
commit e80175dc93
1 changed files with 10 additions and 7 deletions

View File

@ -1,11 +1,14 @@
# #
CC = gcc # Set CROSS_PREFIX to prepend to all compiler tools at once for easier
AR = ar # cross-compilation.
RANLIB = ranlib CROSS_PREFIX =
SIZE = size CC = $(CROSS_PREFIX)gcc
SHLIB = $(CC) -shared AR = $(CROSS_PREFIX)ar
STRIP = strip RANLIB = $(CROSS_PREFIX)ranlib
STRIPLIB = $(STRIP) --strip-unneeded SIZE = $(CROSS_PREFIX)size
STRIP = $(CROSS_PREFIX)strip
SHLIB = $(CC) -shared
STRIPLIB = $(STRIP) --strip-unneeded
CFLAGS += -O3 -Wall -pthread CFLAGS += -O3 -Wall -pthread