[ANNOUNCE] VDR developer version 1.3.49
Commit Message
Hi,
attached patch fixes that vdr (the executable and the static lib libpsi) get
compiled with fPIC. Only shared libs need PIC, thus add this flag only when
building plug-ins. Furthermore I added -g and -Wall to CFLAGS, as well,
because of reasons of symmetry.
Please apply.
Cheers,
@@ -6,7 +6,7 @@
### The C++ compiler and options:
CXX ?= g++
-CXXFLAGS ?= -fPIC -O2 -g -Wall -Woverloaded-virtual
+CXXFLAGS ?= -O2 -g -Wall -Woverloaded-virtual
AR = ar
ARFLAGS = ru
RANLIB = ranlib
@@ -14,7 +14,7 @@
CFLAGS = -O2
CXX = g++
-CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual
+CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual
### The directory environment:
@@ -9,10 +9,10 @@
.DELETE_ON_ERROR:
CC ?= gcc
-CFLAGS ?= -O2
+CFLAGS ?= -g -O2 -Wall
CXX ?= g++
-CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual
+CXXFLAGS ?= -g -O2 -Wall -Woverloaded-virtual
LSIDIR = ./libsi
MANDIR = /usr/local/man
@@ -175,6 +175,8 @@
# Plugins:
plugins: include-dir
+ CFLAGS="-fPIC $(CFLAGS)"
+ CXXFLAGS="-fPIC $(CXXFLAGS)"
@failed="";\
noapiv="";\
for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do\