From 37c5ee26ae27af1f6aae0422431386117e7098f5 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Tue, 14 Dec 2010 19:27:00 +0200 Subject: [PATCH] Added support for LDFLAGS. --- HISTORY | 3 ++- Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 850d8cc..c56b9a0 100644 --- a/HISTORY +++ b/HISTORY @@ -142,7 +142,7 @@ VDR Plugin 'iptv' Revision History - Updated for vdr-1.7.15. -2010-12-06: Version 0.4.3 +2010-xx-xx: Version 0.4.3 - Updated for vdr-1.7.16. - Renamed Sid scanner to section id scanner and added @@ -156,3 +156,4 @@ VDR Plugin 'iptv' Revision History - Disable detaching of receivers if retuned to an existing channel (Thanks to Zdeněk Kopřivík). - Canonicalized the configuration directory. +- Added support for LDFLAGS. diff --git a/Makefile b/Makefile index 794c040..65b86ca 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ VERSION = $(shell grep 'const char VERSION\[\] *=' $(PLUGIN).c | awk '{ print $$ 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: @@ -113,7 +114,7 @@ i18n: $(I18Nmsgs) $(I18Npot) ### Targets: libvdr-$(PLUGIN).so: $(OBJS) - $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ ifndef IPTV_DEBUG @$(STRIP) $@ endif