Date: Wed, 25 Feb 2009 11:33:05 +0100 From: Guido Falsi <mad@madpilot.net> To: Dirk Meyer <dirk.meyer@dinoex.sub.org> Cc: freebsd-ports@freebsd.org Subject: Re: ports using sdp when mpeg4ip is installed Message-ID: <20090225103305.GA79251@megatron.madpilot.net> In-Reply-To: <eesNkAeDXv@dmeyer.dinoex.sub.org> References: <bb4a86c70902181021g602f3216nca48ebde6f4d8e06@mail.gmail.com> <20090218141028.GB48065@megatron.madpilot.net> <bb4a86c70902181021g602f3216nca48ebde6f4d8e06@mail.gmail.com> <499C703A.7020606@madpilot.net> <eesNkAeDXv@dmeyer.dinoex.sub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 25, 2009 at 07:57:24AM +0100, Dirk Meyer wrote: > Guido Falsi schrieb:, > > > It will not solve the problem with libsdp.so though. > [...] > > After fixing the include(by hardcoding the path for now) I got this > > error. As you can see libtool prefers libsdp.so found in localbase. > > > > I'm not sure what a solution to this could be. in fact having two > > libraries with the same name looks like a problem anyway. > > You can trick cc/ld with the "rpath" option to change preference > on load time so your so is load first, check with ldd. But the problem is with libtool at compile time. libtool looks at the comand line and substitutes -lsdp with /usr/local/lib/libsdp.so explicitly (I will never really understand why the autotools use such black magic). Since the software uses it's own autotool script I'm hacking it's ltmain.sh to teach it to behave regardin libsdp.so. This should definetly fix the problem. It's getting time because ltmain.sh looks like obfuscated code to me and I also am very busy these weeks so i can devote only little time to the task(and another port I maintain also asks for attention...) -- Guido Falsi <mad@madpilot.net>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090225103305.GA79251>