|
Bugzilla – Full Text Bug Listing |
| Summary: | LDFLAGS is ignored by make | ||
|---|---|---|---|
| Product: | Mktemp | Reporter: | Henning Seemann <henning.seemann> |
| Component: | Build | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.5 | ||
| Hardware: | All | ||
| OS: | Linux | ||
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.