Am Freitag, 26. April 2013, 15:12:51 schrieb Cyrille Duret:
> hello everybody,
> I am looking for a way to indicate the lib path of gcc while gforth is
> compiling a c-library
> 
> I have tried export CFLAGS=-L/usr/local/lib but the linker still complain
> he not find my lib.
> 
> I have seen in the last development version you have added the word
> add-libpath but for now it seems that this version is a bit buggy for
> freeBSD.

Bug reports please!

> Any solution for the 0.7.2 version ?

: add-libpath ( c-addr1 u1 node -- c-addr2 u2 )
    \ append " -L<nodelib>" to string1
    >r s"  -L" append r> c-lib-string 2@ append ;

should do it for 0.7.2.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to