mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -04:00
implement LINK variable in Makefile to conditionally link to C++ runtime & thus use of _Unwind symbols
This commit is contained in:
parent
a4c2c2f88a
commit
12a82990d3
5
Makefile
5
Makefile
@ -165,6 +165,9 @@ else
|
||||
CFLAGS += -g
|
||||
endif
|
||||
|
||||
# link with CC by default
|
||||
LINK ?= $(CC)
|
||||
|
||||
default: $(PLAT)
|
||||
|
||||
web:
|
||||
@ -253,7 +256,7 @@ clean:
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $(BUILD_DIR)
|
||||
$(ENAME): $(BUILD_DIR) $(OBJECTS)
|
||||
$(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
||||
$(LINK) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
||||
|
||||
|
||||
# macOS app bundle
|
||||
|
Loading…
x
Reference in New Issue
Block a user