Bugzilla – Bug 129
LDFLAGS is ignored by make
Last modified: 2008-08-17 11:35:24 MDT
According to "./configure --help" LDFLAGS can be set as environment variable before calling ./configure to modify linking. If LDFLAGS is defined, the value is added to Makefile. But LDFLAGS is ignored in the linking target: $(PROG): $(OBJS) $(CC) -o $@ $(OBJS) $(LIBS) should be (in Makefile.in) $(PROG): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) As a workaround LIBS can be used to set linker flags. The problem was found with mktemp 1.5 on SUSE Linux 9.0.