1. geekman
  2. tinysvcmdns

Commits

geekman  committed a8b56f2

Added CROSS_COMPILE prefix to Makefile.

  • Participants
  • Parent commits c29a2cb
  • Branches default

Comments (0)

Files changed (1)

File Makefile

View file
 CFLAGS += -O2 -DNDEBUG
 LDLIBS = -lpthread
 
+ifneq ($(CROSS_COMPILE),)
+  CC = gcc
+  CC := $(CROSS_COMPILE)$(CC)
+  AR := $(CROSS_COMPILE)$(AR)
+endif
+
 BIN=testmdnsd
 
 LIBTINYSVCMDNS_OBJS = mdns.o mdnsd.o