From: "Eren Türkay" <eren@hambedded.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Linker Problem: Unrecognized '-Wl,-O1'
Date: Thu, 27 Dec 2012 02:28:44 +0200 [thread overview]
Message-ID: <20121227002844.GA21277@gmail.com> (raw)
In-Reply-To: <20121226105254.GA18297@mi.fu-berlin.de>
[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]
prev parent reply other threads:[~2012-12-27 0:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-24 18:54 Linker Problem: Unrecognized '-Wl,-O1' Eren Türkay
2012-12-26 10:52 ` Henning Heinold
2012-12-27 0:28 ` Eren Türkay [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121227002844.GA21277@gmail.com \
--to=eren@hambedded.org \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox