Page 1 of 1

build does not respect LDFLAGS

Posted: Thu Aug 29, 2013 5:32 pm
by hasufell
LDFLAGS only apply to libraries that come _after_ them in the linking command

the generated makefiles all show the following:

Code: Select all

  LINKCMD    = $(CC) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(LIBS) $(LDFLAGS)
which causes LDFLAGS to do nothing. If this is the standard form of premake generated makefiles, then it is misdesigned and should never be used again.

see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347650