From 4f7c2d6cab8b748752ec50cc2836208a639a17da Mon Sep 17 00:00:00 2001 From: ken Date: Fri, 16 Dec 2016 16:29:27 -0800 Subject: [PATCH] minor variable management usage --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 079c4cc..2d928e6 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ LDFLAGS ?= LDLIBS ?= -lunistring apcLIBS ?= apc-dLIBS ?= -LDCMD = $(strip gcc $(LDFLAGS) $(if $2,-o $2) $1) $(LDLIBS) $($1LIBS) +LDCMD = $(strip $(CC) $(LDFLAGS) $(if $2,-o $2) $1) $(LDLIBS) $($1LIBS) # APC is built from Ragel, Bison and C source code only. ySRC := $(shell find ./src -type f -name '*.y') @@ -63,7 +63,7 @@ endif # Rules .SECONDEXPANSION: $(DRIVERS:%=%-d) $(DRIVERS): $$($$@SRC) | $(hGEN) - $(strip $(call LDCMD,$^,$@)) + $(call LDCMD,$^,$@) %-d.o: CFLAGS+= -Og -ggdb %.o %-d.o: %.c $$(call cGENDEP,$$(dir $$@)%.c) -- 2.18.0