help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding missing linker flags for AIX?


From: Jaroslav Hajek
Subject: Re: Adding missing linker flags for AIX?
Date: Tue, 25 Aug 2009 16:10:01 +0200

On Tue, Aug 25, 2009 at 12:39 PM, Loris
Bennett<address@hidden> wrote:
> Hi,
>
> On AIX the build fails at points such as:
>
>  g++ -shared -o colloc.oct colloc.o -L../libcruft -lcruft
>  -L../liboctave -loctave -L. -loctinterp -lessl -lblas -lreadline
>  -lncurses -ldl -lessl -lblas -lz -lm -L/opt/pware/lib -lz -lm
>  -lxlf90 -L/usr/lpp/xlf/lib -lxlopt -lxlf -lxlomp_ser
>
> with
>
>  ld: 0706-006 Cannot find or open library file: -l cruft
>          ld:open(): A file or directory in the path name does not exist.
>  ld: 0706-006 Cannot find or open library file: -l octave
>          ld:open(): A file or directory in the path name does not exist.
>  ld: 0706-006 Cannot find or open library file: -l octinterp
>          ld:open(): A file or directory in the path name does not exist.
>
> The solution is to add the flag
>
>  -Wl,-brtl
>
> to the compiler call.
>
> Unfortunately there are many such points. Ideally 'configure' would
> recongnize AIX and do the right thing, but is there some way to
> locally add to the list of flags as a workaround?
>
> Cheers,
>
> Loris
>
> --
> Dr. Loris Bennett
> Computer Centre
> Freie Universität Berlin
> Germany
>

I think you can use
configure LDFLAGS=-Wl,-brtl
If AIX is recognized by Autoconf, it should be easy to do that
automatically in configure.

-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]