This changes LFLAGS to the more standard LDFLAGS (while preserving backwards compatibility). It also adds the missing $(LDFLAGS) usage when linking `date`. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ab0f54b..625c6b2 100644 --- a/Makefile +++ b/Makefile @@ -224,6 +224,10 @@ GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \ CFLAGS= +# Linker flags. + +LDFLAGS= $(LFLAGS) + # If you want zic's -s option used when installing, uncomment the next line # ZFLAGS= -s @@ -338,10 +342,10 @@ version.h: 'static char const TZVERSION[]="tz$(VERSION)";' zdump: $(TZDOBJS) - $(CC) $(CFLAGS) $(LFLAGS) $(TZDOBJS) $(LDLIBS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) -o $@ zic: $(TZCOBJS) yearistype - $(CC) $(CFLAGS) $(LFLAGS) $(TZCOBJS) $(LDLIBS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) -o $@ yearistype: yearistype.sh cp yearistype.sh yearistype @@ -380,8 +384,8 @@ $(TZLIB): $(LIBOBJS) then ranlib $@ ; fi date: $(DATEOBJS) - $(CC) $(CFLAGS) date.o localtime.o asctime.o strftime.o \ - $(LDLIBS) -lc -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) date.o localtime.o asctime.o \ + strftime.o $(LDLIBS) -lc -o $@ tzselect: tzselect.ksh sed \ -- 1.7.12