Order of compiler options

On some Linux distributions (or versions of GCC), you may have to change the order of options in the Makefile. Simply change

$(LD) -o $(APP) $(LDFLAGS) $(OBJECTS)

to

$(LD) $(OBJECTS) $(LDFLAGS) -o $(APP)

For details about this, see for example
http://stackoverflow.com/questions/45135/linker-order-gcc

Publisert 4. sep. 2014 08:47