Skip to content

Commit

Permalink
Link with cflags, because link-time optimizations depend on it
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Apr 26, 2015
1 parent 2481a2a commit e59ab65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -35,7 +35,7 @@ rwpng_cocoa.o: rwpng_cocoa.m
$(CC) -Wno-enum-conversion -c $(CFLAGS) -o $@ $< || clang -Wno-enum-conversion -c -O3 $(CFLAGS) -o $@ $<

$(BIN): $(OBJS) $(STATICLIB)
$(CC) $^ $(LDFLAGS) -o $@
$(CC) $^ $(CFLAGS) $(LDFLAGS) -o $@

test: $(BIN)
./test/test.sh ./test $(BIN)
Expand Down

0 comments on commit e59ab65

Please sign in to comment.