Bug 129

Summary: LDFLAGS is ignored by make
Product: Mktemp Reporter: Henning Seemann <henning.seemann>
Component: BuildAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.5   
Hardware: All   
OS: Linux   

Description Henning Seemann 2004-02-05 06:03:21 MST
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.