[SDL] statically linking

Mikael Eriksson mikael_eriksson at miffe.org
Wed Dec 1 20:03:27 PST 2010


On Wed, Dec 01, 2010 at 03:53:32PM +0000, azer tyuiop wrote:
> $(TARGET): $(OBJ)
>     $(CC) $(LDFLAGS) -o $@ $^

IIRC the order is important when staticly linking, try:
$(TARGET): $(OBJ)
    $(CC) -o $@ $^ $(LDFLAGS)



More information about the SDL mailing list