Am Mittwoch, den 13.01.2010, 03:02 -0800 schrieb Khem Raj:

[…]

> > > > Looking at `run.do_install.28829` I cannot see find the `-fPIC` in
> > > > there. So my question is, why is it not included. Is it because of »?=«?
> > > > How do I get it included?
> > > 
> > > you could do CXXFLAGS_append = ... in the recipe.
> > 
> > Is that the recommended behavior? 
> 
> yes.

I just tried your suggestion. The problem is, that `-fPIC` is just need
during `do_install` since strangely that is when the plugins get
compiled.

        do_install () {
              oe_runmake 'DESTDIR=${D}' \
                         'PREFIX=${prefix}' \
                         'CONFDIR=${sysconfdir}/vdr' \
                         'VIDEODIR=/var/lib/vdr/video' \
                         'PLUGINLIBDIR=${PLUGINDIR}' \
                         'LOCDIR=${datadir}/locale' \
                         install
        }

Using `CXXFLAGS_append = " -fPIC` in `do_install` gives me this error.

        + do_install
        + CXXFLAGS_append += ' -fPIC'
        
/srv/filme/oe/tangstrom-dev/work/armv7a-angstrom-linux-gnueabi/vdr-1.7.10-r3/temp/run.do_install.17984:
 line 540: CXXFLAGS_append: command not found
        ERROR: function do_install failed

Adding `-fPIC` to the global `CXXFLAGS` is not desired, since the main
binary should not be compiled with this flag.

What solution is recommended in such a situation besides patching the
Makefiles? Add 'CXXFLAGS+=${CXXFLAGS}' to `oe_runmake`?

[…]


Thanks,

Paul

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to