[oe] Linker Problem: Unrecognized '-Wl,-O1'

Eren Türkay eren at hambedded.org
Thu Dec 27 00:28:44 UTC 2012


On Wed, Dec 26, 2012 at 11:52:54AM +0100, Henning Heinold wrote:
> Hi,

Hello,

> easy to fix edit the buildsystem to usee gcc as linker no ld directly
> or fix the build system not to use CFLAGS for linking, but LDFLAGS.

Thanks for your suggestion! I have set "LD = ${CC}" in .bb file and it
compiles right now. It seems to work correctly.

There is no problem with the usage of CFLAGS or LDFLAGS but Makefile of
aprx seems to be wrong. All the other packages I have looked so far
utilized autotools and used the compiler for linking. However, aprx
directly sets the linker and it seems to be using autotools as well. I
don't know how the error originated but I guess it's better that I
contact the maintainer and let him know.

### BEGIN: Makefile.in ###

# Compiler and flags
CC=             @CC@
CFLAGS=         @CFLAGS@

# Linker and flags
LD=             @LD@
LDFLAGS=        @LDFLAGS@ $(PROF)

PROGAPRX=   aprx

$(PROGAPRX):    $(OBJSAPRX) VERSION Makefile                            
        $(LD) $(LDFLAGS) -o $@ $(OBJSAPRX) $(LIBS)  

### END: Makefile.in ###

> Bye Henning

Regards,
Eren

-- 
    . 73! DE TA1AET
      http://linkedin.com/in/erenturkay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20121227/37523ce7/attachment-0002.sig>


More information about the Openembedded-devel mailing list