1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 22:30:12 +00:00

Most hosts require the math library to be linked explicitly.

This commit is contained in:
Oliver Schmidt 2013-04-29 17:03:14 +03:00
parent 18e00a1f9b
commit 780f38acd5

View File

@ -20,6 +20,8 @@ CFLAGS += -MMD -MP -O -std=c89 -I common \
-DCA65_INC=$(CA65_INC) -DCC65_INC=$(CC65_INC) \
-DLD65_LIB=$(LD65_LIB) -DLD65_OBJ=$(LD65_OBJ) -DLD65_CFG=$(LD65_CFG)
LDLIBS += -lm
all: $(PROGS)
mostlyclean:
@ -74,7 +76,7 @@ define PROG_template
$$(eval $$(call OBJS_template,$(1)))
../bin/$(1): $$($(1)_OBJS) ../wrk/common/common.a | ../bin
$$(CC) $$(LDFLAGS) -o $$@ $$^
$$(CC) $$(LDFLAGS) $$(LDLIBS) -o $$@ $$^
$(1): ../bin/$(1)