mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -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
|
CFLAGS += -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# link with CC by default
|
||||||
|
LINK ?= $(CC)
|
||||||
|
|
||||||
default: $(PLAT)
|
default: $(PLAT)
|
||||||
|
|
||||||
web:
|
web:
|
||||||
@ -253,7 +256,7 @@ clean:
|
|||||||
$(BUILD_DIR):
|
$(BUILD_DIR):
|
||||||
mkdir -p $(BUILD_DIR)
|
mkdir -p $(BUILD_DIR)
|
||||||
$(ENAME): $(BUILD_DIR) $(OBJECTS)
|
$(ENAME): $(BUILD_DIR) $(OBJECTS)
|
||||||
$(CC) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
$(LINK) $(LDFLAGS) -o $@$(OEXT) $(OBJECTS) $(EXTRA_LIBS) $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
# macOS app bundle
|
# macOS app bundle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user