On Fri, Nov 19, 2010 at 06:23:03PM +0100, Sven Joachim wrote:
> On 2010-11-19 09:59 +0100, Thomas Dickey wrote:
> 
> > On Fri, 19 Nov 2010, Sven Joachim wrote:
> >
> >> We're already passing --disable-rpath to configure, and adding
> >> --disable-rpath-hack does not help either. :-(
> 
> Here's my analysis why this is so: irrespective of these options,
> aclocal.m4 computes LD_RPATH_OPT="-Wl,-rpath," and later
> LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)".  This is not a problem
> for the regular programs since progs/Makefile.in does not use
> LOCAL_LDFLAGS, but test/Makefile.in adds it to LDFLAGS, so we lose.
> 
> >> In test/configure there is no option at all to disable RPATH.
> >> Any ideas?
> >
> > I can add an option.  test/configure was originally a minimal script,
> > without the various features needed in ./configure, but I can see it'll
> > grow a little more.
> 
> Actually rpath is not a problem when running test/configure, but I could
> not get it to use the just compiled-but-not-yet-installed ncurses
> library.  Because it is built out of tree, the libs are not adjacent to
> the headers which is expected by the "--with-curses-dir" configure
> option.
> 
> It would be good if this could be made to work, because the simplistic
> solution of just copying everything from obj/test has the drawback that
> cruft files like "Makefile" creep into the binary package.  And we can
> only run "make install" in the test directory if we had run
> test/configure before, see the recent discussion on bug-ncurses.

I've just implemented the latter, for today.

-- 
Thomas E. Dickey <dic...@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature

Reply via email to