jiayouxjh / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

building on linux trunk fails (Makefile error) #336

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Makefile is wrong for linux..

$(BIN) : $(OBJ)
    test -d ../bin || $(MKDIR) ../bin
    $(CC) $(OBJ) -o $(BIN) $(COPT) $(LOPT) $(LFLAGS)

has $(COPT) which for linux includes flag "-c" says "Do not run the linker" 
which 
is the opposite of what we want..

so we need;

$(BIN) : $(OBJ)
    test -d ../bin || $(MKDIR) ../bin
    $(CC) $(OBJ) -o $(BIN) $(LOPT) $(LFLAGS)

I did not submit a patch because I dont know what it will break regarding the 
other 
ports...

Original issue reported on code.google.com by yakumo9...@gmail.com on 2 Apr 2010 at 2:21

GoogleCodeExporter commented 9 years ago
Fixed in r1432. I added $(COPT) recently, because I realized the linker didn't 
get
the -O flag (optimization level), but either way I still don't know if it would 
have
any effect.

Original comment by yrizoud on 2 Apr 2010 at 8:39