Am Sonntag Juni 11 2006 23:36 schrieb Klaus Schmidinger:
Udo Richter wrote:
[...]
Another good solution would be to do a conditional part in Make.config, like this: --- Make.config.template 2006-05-28 15:08:29.687375000 +0200 +++ Make.config.template 2006-06-11 17:50:14.467000000 +0200 @@ -16,6 +16,11 @@ CXX = g++ CXXFLAGS = -g -O2 -Wall -Woverloaded-virtual
+ifdef PLUGIN +CFLAGS += -fPIC +CXXFLAGS += -fPIC +endif
### The directory environment:
#DVBDIR = /usr/src/v4l-dvb/linux
[...]
Maybe it would have been better to leave the -fPIC thing as it has been for so long - as it is now, plugins will actually be compiled _without_ it, which is probably a lot worse than compiling the main program _with_ it...
Just to note: Udo's patch works fine here. :-)