[tz] [PATCH 1/3] build: handle standard LDFLAGS variable
Mike Frysinger
vapier at gentoo.org
Sat Oct 27 07:14:34 UTC 2012
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 at 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
More information about the tz
mailing list