Replace LD with CCLD variable

When cross compiling, the LD variable typically gets overriden.
This commit is contained in:
Rosen Penev 2019-04-05 14:33:55 -07:00
parent 1efa37087e
commit 57f2f1363f
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -24,7 +24,7 @@ MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
INSTALL = install
CC ?= cc
LD ?= $(MYENV) cc
CCLD ?= $(MYENV) $(CC)
CFLAGS += $(MYCFLAGS)
LDFLAGS += $(MYLDFLAGS)
@ -51,7 +51,7 @@ luasocket:
@cd luasocket && $(MAKE)
$(CMOD): $(EXTRA) $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
$(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
cd luasocket && $(MAKE) clean