[oe] [vdr] TARGET_CXXFLAGS do not include CXX_FLAGS from Makefile

Paul Menzel paulepanter at users.sourceforge.net
Tue Jan 26 10:25:24 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100126/e59c8732/attachment-0002.sig>


More information about the Openembedded-devel mailing list