Holger Levsen | 4 May 2008 17:36

changing LIBDIR doesnt work?

Hi,

while packaging 0.5.6rc1 I tried to set LIBDIR to /usr/lib/olsrd, but this 
didnt work, the plugins ended up there, but olsrd couldnt find them.

I think this is a bug :-)

regards,
	Holger
--

-- 
Olsr-dev mailing list
Olsr-dev <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-dev
Bernd Petrovitsch | 4 May 2008 19:03
Picon
Favicon

Re: changing LIBDIR doesnt work?

On Sun, 2008-05-04 at 17:36 +0200, Holger Levsen wrote:
> Hi,
> 
> while packaging 0.5.6rc1 I tried to set LIBDIR to /usr/lib/olsrd, but this 
> didnt work, the plugins ended up there, but olsrd couldnt find them.
> 
> I think this is a bug :-)

Probably.
Does something like the following help?

--- a/Makefile.inc      Sun May 04 15:41:44 2008 +0200
+++ b/Makefile.inc      Sun May 04 19:02:40 2008 +0200
 <at>  <at>  -128,6 +128,7  <at>  <at> 
 else
 # c and ld flags for main
 LDFLAGS +=     -Wl,-export-dynamic 
+LDFLAGS +=     -L$(LIBDIR)
 endif
 # LDFLAGS for all 
 LDFLAGS +=     -Wl,--warn-common

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

--

-- 
Olsr-dev mailing list
(Continue reading)

Bernd Petrovitsch | 5 May 2008 10:29
Picon
Favicon

Re: changing LIBDIR doesnt work?

On Son, 2008-05-04 at 19:03 +0200, Bernd Petrovitsch wrote:
> On Sun, 2008-05-04 at 17:36 +0200, Holger Levsen wrote:
> > Hi,
> > 
> > while packaging 0.5.6rc1 I tried to set LIBDIR to /usr/lib/olsrd, but this 
> > didnt work, the plugins ended up there, but olsrd couldnt find them.
> > 
> > I think this is a bug :-)
> 
> Probably.
> Does something like the following help?

It didn't help when I tried it out.
But the following worked:

--- a/Makefile.inc      Sun May 04 15:41:44 2008 +0200
+++ b/Makefile.inc      Sun May 04 19:02:40 2008 +0200
 <at>  <at>  -128,6 +128,7  <at>  <at> 
 else
 # c and ld flags for main
 LDFLAGS +=     -Wl,-export-dynamic 
+LDFLAGS +=     -Wl,-rpath,$(LIBDIR)
 endif
 # LDFLAGS for all 
 LDFLAGS +=     -Wl,--warn-common

Disclaimer: Patch edited by hand. But the point should be clear
(together with the man page of `ld`).

	Bernd
(Continue reading)

Hannes Gredler | 5 May 2008 11:17
Picon

Re: changing LIBDIR doesnt work?

On Mon, May 05, 2008 at 10:29:41AM +0200, Bernd Petrovitsch wrote:
| On Son, 2008-05-04 at 19:03 +0200, Bernd Petrovitsch wrote:
| > On Sun, 2008-05-04 at 17:36 +0200, Holger Levsen wrote:
| > > Hi,
| > > 
| > > while packaging 0.5.6rc1 I tried to set LIBDIR to /usr/lib/olsrd, but this 
| > > didnt work, the plugins ended up there, but olsrd couldnt find them.
| > > 
| > > I think this is a bug :-)
| > 
| > Probably.
| > Does something like the following help?
| 
| It didn't help when I tried it out.
| But the following worked:
| 
| --- a/Makefile.inc      Sun May 04 15:41:44 2008 +0200
| +++ b/Makefile.inc      Sun May 04 19:02:40 2008 +0200
|  <at>  <at>  -128,6 +128,7  <at>  <at> 
|  else
|  # c and ld flags for main
|  LDFLAGS +=     -Wl,-export-dynamic 
| +LDFLAGS +=     -Wl,-rpath,$(LIBDIR)
|  endif
|  # LDFLAGS for all 
|  LDFLAGS +=     -Wl,--warn-common
| 
| 
| Disclaimer: Patch edited by hand. But the point should be clear
| (together with the man page of `ld`).
(Continue reading)

Holger Levsen | 5 May 2008 19:10

Re: changing LIBDIR doesnt work?

Hi,

On Monday 05 May 2008 11:17, Hannes Gredler wrote:
> | Disclaimer: Patch edited by hand. But the point should be clear
> | (together with the man page of `ld`).
> tx, added this to the repo:

Supercool, thanks, you two! 

regards,
	Holger (0.5.6~rc1-1 uploaded to Debian experimental without that change, -2 
will follow unless you beat me by releasing 0.5.6 ;)
--

-- 
Olsr-dev mailing list
Olsr-dev <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-dev

Gmane