From ebfc153940e39c22c414631b85ddc02e178b424d Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Tue, 14 Dec 2010 19:25:09 +0200 Subject: [PATCH] Added support for LDFLAGS. --- HISTORY | 1 + Makefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index b0c78af..ebdcec9 100644 --- a/HISTORY +++ b/HISTORY @@ -408,3 +408,4 @@ VDR Plugin 'femon' Revision History - Updated for vdr-1.7.16. - Added Makefile depencency for objects. - Fixed detection of replaying. +- Added support for LDFLAGS. diff --git a/Makefile b/Makefile index e2190d7..8c534e8 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ VERSION = $(shell grep 'static const char VERSION\[\] *=' $(PLUGIN).c | awk '{ p CXX ?= g++ CXXFLAGS ?= -fPIC -g -O2 -Wall -Wextra -Wswitch-default -Wfloat-equal -Wundef -Wpointer-arith -Wconversion -Wcast-align -Wredundant-decls -Wno-unused-parameter -Woverloaded-virtual -Wno-parentheses +LDFLAGS ?= -Wl,--as-needed ### The directory environment: @@ -111,7 +112,7 @@ i18n: $(I18Nmsgs) $(I18Npot) ### Targets: libvdr-$(PLUGIN).so: $(OBJS) - $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ ifndef FEMON_DEBUG @$(STRIP) $@ endif