Move -lm to the end of the link command line to fix the Linux build.
This commit is contained in:
parent
9327d0b0a7
commit
1cddced742
2
Makefile
2
Makefile
|
@ -37,7 +37,7 @@ OPT := -O3
|
||||||
CFLAGS = -c -g -Wall -Wno-format $(OPT) -D LINUX
|
CFLAGS = -c -g -Wall -Wno-format $(OPT) -D LINUX
|
||||||
|
|
||||||
all: directory $(SOURCES) $(OBJECTS) Makefile
|
all: directory $(SOURCES) $(OBJECTS) Makefile
|
||||||
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS)
|
$(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
|
||||||
|
|
||||||
directory:
|
directory:
|
||||||
mkdir -p $(BUILD)
|
mkdir -p $(BUILD)
|
||||||
|
|
Loading…
Reference in New Issue