mirror of
https://github.com/brunoos/luasec.git
synced 2025-04-29 03:46:46 +02:00
Replace LD with CCLD variable
When cross compiling, the LD variable typically gets overriden.
This commit is contained in:
parent
1efa37087e
commit
57f2f1363f
@ -24,7 +24,7 @@ MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
|
|||||||
|
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
LD ?= $(MYENV) cc
|
CCLD ?= $(MYENV) $(CC)
|
||||||
CFLAGS += $(MYCFLAGS)
|
CFLAGS += $(MYCFLAGS)
|
||||||
LDFLAGS += $(MYLDFLAGS)
|
LDFLAGS += $(MYLDFLAGS)
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ luasocket:
|
|||||||
@cd luasocket && $(MAKE)
|
@cd luasocket && $(MAKE)
|
||||||
|
|
||||||
$(CMOD): $(EXTRA) $(OBJS)
|
$(CMOD): $(EXTRA) $(OBJS)
|
||||||
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
$(CCLD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cd luasocket && $(MAKE) clean
|
cd luasocket && $(MAKE) clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user