Re: [PATCH] Makefile: pass `LDFLAGS` to compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Am Montag, den 13.12.2010, 11:29 +0100 schrieb Paul Menzel:
>> Am Montag, den 13.12.2010, 00:29 +0100 schrieb Joerg Bornkessel:
>> 
>> > > Am Samstag, den 25.09.2010, 13:15 +0200 schrieb Joerg Bornkessel:
>> > 
>> > > [â]
>> > 
>> > 
>> > >> [2] http://www.gentoo.org/proj/en/qa/asneeded.xml
>> > 
>> > > Should `LDFLAGS` also be passed to the compiler when building the
>> > > plugins?
>> > 
>> > We have this fixed global on Gentoo for all plugins.
>> > All plugin Makefile's are sed'ed/patched to use the LDFLAGS.
>> 
>> Sorry, I do not know Gentooâs build system. I found the patch for VDR
>> [1] and the ebuild file [2].
>> 
>> I was wondering why skincurses had no patch applied or change regarding
>> `LDFLAGS` [3] and for example vdr-burn [4] has a separate patch. Then I
>> found `vdr-plugin.eclass` [5] where the replacement is done using `sed`.
>> 
>> > > I made a patch from your message which does not include any changes to
>> > > the plugins.
>> >
>> > I dont know, what distri you use,
>> 
>> I am using the OpenEmbedded framework [6].
>> 
>> > one way would be to fix this in the make.global ( used up from
>> > vdr-1.7.(not shure yet)) and inherit this in the plugin Makefile.
>> > 
>> > Should be standard in the vdr-1.7.x adapted plugin Makefiles
>> 
>> That is what my patch is for. I will send an updated patch.

> One question left. Why does not `LDFLAGS` need to be passed in the
> implicit rules?

>         ### Implicit rules:
>         
>         %.o: %.c
>                 $(CXX) $(CXXFLAGS) $(LDFLAGS) -c $(DEFINES) $(INCLUDES) $<

In this part will only create/compiled the object files, $(OBJS),
files with .o extension.
It is not needed to link here against LDFLAGS,
Linked will only the final lib



-- 
Regards
Gentoo Developer
Joerg Bornkessel <hd_brummy@xxxxxxxxxx>


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux