Added CROSS_COMPILE prefix to Makefile.
This commit is contained in:
parent
e0bf7227b1
commit
4a32af1988
6
Makefile
6
Makefile
@ -7,6 +7,12 @@ CFLAGS += -Wall -pedantic -std=gnu99
|
|||||||
CFLAGS += -O2 -DNDEBUG
|
CFLAGS += -O2 -DNDEBUG
|
||||||
LDLIBS = -lpthread
|
LDLIBS = -lpthread
|
||||||
|
|
||||||
|
ifneq ($(CROSS_COMPILE),)
|
||||||
|
CC = gcc
|
||||||
|
CC := $(CROSS_COMPILE)$(CC)
|
||||||
|
AR := $(CROSS_COMPILE)$(AR)
|
||||||
|
endif
|
||||||
|
|
||||||
BIN=testmdnsd
|
BIN=testmdnsd
|
||||||
|
|
||||||
LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o
|
LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o
|
||||||
|
Loading…
Reference in New Issue
Block a user