* Could we add relative path in LDFLAGS?
@ 2015-03-03 22:10 loody
2015-03-03 23:06 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: loody @ 2015-03-03 22:10 UTC (permalink / raw)
To: binutils@sourceware.org Development
hi all:
When I use configure with LDFLAGS="-L../lib" to set up my local
library, I get compile error.
And it say cannot find the library I specify. But it will be fine if I
use absorptive path.
Could we add relative path in LDFALGS?
appreciate your help in advance,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Could we add relative path in LDFLAGS?
2015-03-03 22:10 Could we add relative path in LDFLAGS? loody
@ 2015-03-03 23:06 ` Mike Frysinger
2015-03-04 1:45 ` loody
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2015-03-03 23:06 UTC (permalink / raw)
To: loody; +Cc: binutils@sourceware.org Development
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
On 04 Mar 2015 06:10, loody wrote:
> When I use configure with LDFLAGS="-L../lib" to set up my local
> library, I get compile error.
> And it say cannot find the library I specify. But it will be fine if I
> use absorptive path.
> Could we add relative path in LDFALGS?
are you talking about binutils or something else ?
in binutils, we don't generally use relative paths. everything should be based
off one of the srcdir/builddir variables that autoconf sets up for us.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Could we add relative path in LDFLAGS?
2015-03-03 23:06 ` Mike Frysinger
@ 2015-03-04 1:45 ` loody
2015-03-04 3:15 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: loody @ 2015-03-04 1:45 UTC (permalink / raw)
To: loody, binutils@sourceware.org Development
hi Mike:
> are you talking about binutils or something else ?
Sorry for not describing my question clear.
I try to corss-compile openocd with below configureation
./configure --build=x86_64-linux-gnu --host=i686-w64-mingw32
--enable-ft2232_ftd2xx --with-ftd2xx-win32-zipdir="../CDMv2-10"
CPPFLAGS="-I../win32/include/libusb-1.0 -I../win32/include/libusb"
LDFLAGS="-L../win32/lib" LIBS=-lusb-1.0 --disable-werror
and during linking stage it complain it cannot find the ../win32/lib.
And it will be ok if I give the absolute address in LDFLAGS.
Does that mean we cannot put relative path in LDFLAGS?
appreciate your kind help,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Could we add relative path in LDFLAGS?
2015-03-04 1:45 ` loody
@ 2015-03-04 3:15 ` Mike Frysinger
2015-03-04 10:50 ` loody
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2015-03-04 3:15 UTC (permalink / raw)
To: loody; +Cc: binutils@sourceware.org Development
[-- Attachment #1: Type: text/plain, Size: 398 bytes --]
On 04 Mar 2015 09:45, loody wrote:
> > are you talking about binutils or something else ?
>
> Sorry for not describing my question clear.
> I try to corss-compile openocd with below configureation
sorry, but this list is for the binutils project. general cross-compilation
questions don't really fit here. you might want to ask on the openocd project's
mailing lists for help.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Could we add relative path in LDFLAGS?
2015-03-04 3:15 ` Mike Frysinger
@ 2015-03-04 10:50 ` loody
0 siblings, 0 replies; 5+ messages in thread
From: loody @ 2015-03-04 10:50 UTC (permalink / raw)
To: loody, binutils@sourceware.org Development
hi Mike:
2015-03-04 11:19 GMT+08:00 Mike Frysinger <vapier@gentoo.org>:
> On 04 Mar 2015 09:45, loody wrote:
>> > are you talking about binutils or something else ?
>>
>> Sorry for not describing my question clear.
>> I try to corss-compile openocd with below configureation
>
> sorry, but this list is for the binutils project. general cross-compilation
> questions don't really fit here. you might want to ask on the openocd project's
> mailing lists for help.
sorry for bothering you. ^^
thanks for your kind help,
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-04 10:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 22:10 Could we add relative path in LDFLAGS? loody
2015-03-03 23:06 ` Mike Frysinger
2015-03-04 1:45 ` loody
2015-03-04 3:15 ` Mike Frysinger
2015-03-04 10:50 ` loody
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).