Move the -lm after the list of object files

Fixes linking through `gcc`, doesn't affect `clang`.

Closes #43
This commit is contained in:
Paul Woolcock
2015-01-02 08:10:46 -05:00
parent 25b31a206a
commit 23ba46a9f9

View File

@ -27,7 +27,7 @@ debug: prep wrend
# Debug command-line interpreter.
wrend: $(DEBUG_OBJECTS)
$(CC) $(CFLAGS) $(DEBUG_CFLAGS) -Iinclude -lm -o wrend $^
$(CC) $(CFLAGS) $(DEBUG_CFLAGS) -Iinclude -o wrend $^ -lm
# Debug object files.
build/debug/%.o: src/%.c include/wren.h $(HEADERS)
@ -38,7 +38,7 @@ release: prep wren
# Release command-line interpreter.
wren: $(RELEASE_OBJECTS)
$(CC) $(CFLAGS) $(RELEASE_CFLAGS) -Iinclude -lm -o wren $^
$(CC) $(CFLAGS) $(RELEASE_CFLAGS) -Iinclude -o wren $^ -lm
# Release object files.
build/release/%.o: src/%.c include/wren.h $(HEADERS)