Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 3 4 |
ifdef PLUGIN CFLAGS += -fPIC CXXFLAGS += -fPIC endif |
|
|
Source code |
1 |
-g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses |
|
|
Source code |
1 |
-g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC |
|
|
Source code |
1 |
-g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses |
This post has been edited 2 times, last edit by "Copperhead" (Nov 20th 2012, 6:48pm)
[*]In allen Plugin-Makefiles wird die Reihenfolge von Make.global und Make.config getauscht.
Nachteil: Alle Plugin-Makefiles müssen angefasst werden
Vorteil: Problem ein für alle mal gelöst
|
|
Source code |
1 2 |
CFLAGS += -fPIC CXXFLAGS += -fPIC |
Quoted
[*]Der Block bleibt stehen
Nachteil: Die Make.global wird ad absurdum geführt.
Vorteil: Minimalinvasiv
Quoted
3) in Make.config.template, remove only the line
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
The lines with "+= -fPIC" are still necessary, as Make.config resets CFLAGS/CXXFLAGS.
This post has been edited 2 times, last edit by "Mreimer" (Nov 21st 2012, 9:41am)

This post has been edited 2 times, last edit by "Mreimer" (Nov 21st 2012, 10:41am)
This post has been edited 1 times, last edit by "Mreimer" (Nov 21st 2012, 11:08am)

This post has been edited 2 times, last edit by "Mreimer" (Nov 21st 2012, 11:19am)

Gerne. Dann muss aber die Include-Reihenfolge in den Plugins angepasst werden. Zuerst Make.config und danach Make.global.
Die Make.config und/oder Parameter an das Makefile setzen die CFLAGS und das ist auch durchaus so gewollt
This post has been edited 1 times, last edit by "Copperhead" (Nov 21st 2012, 11:50am)
... Was der Idee von "Make.global wird nicht geändert" wiedersprechen würde.
Ich halte Compile-Parameter durchaus für "individualisierbar". Es ist hier nicht nötig feste Werte zu erzwingen. Beim "-fPIC" ist das anders.
Edit: Obwohl: Wenn man jetzt ein Plugin einfach so bauen will, also mit make VDRDIR=/usr/include/vdr, hätte man wieder nur die VDR-Standard Compileparameter. Außer die Distribution ändert die Make.global.
This post has been edited 5 times, last edit by "Keine_Ahnung" (Nov 21st 2012, 12:40pm)