This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Including full path to shared library in the executable file
- From: Robert Pendell <shinji+cygwin at elite-systems dot org>
- To: cygwin at cygwin dot com
- Date: Thu, 23 May 2013 10:46:20 -0400
- Subject: Re: Including full path to shared library in the executable file
- References: <CALgEz7rPZLJmg6nBacALfvdhkRUT5st+hMEciSuQd9y46xRuYQ at mail dot gmail dot com> <CALgEz7qWEicXk5SQAbYuoiK-7PEeq-HRAJ59Gwt=kVzjKL9RTw at mail dot gmail dot com> <CALgEz7p9EUX5XevA6mGk9c6JN_x0u0Jb1Cswi9-J20TDKvey=Q at mail dot gmail dot com> <20130522084711 dot GU2406 at calimero dot vinschen dot de> <20130522145813 dot GC8150 at ednor dot casa dot cgf dot cx> <20130522152450 dot GA22259 at calimero dot vinschen dot de> <519D8889 dot 5070206 at cygwin dot com> <20130523090154 dot GF22259 at calimero dot vinschen dot de>
On Thu, May 23, 2013 at 5:01 AM, Corinna Vinschen <> wrote:
>
> On May 22 23:10, Larry Hall (Cygwin) wrote:
> > On 5/22/2013 11:24 AM, Corinna Vinschen wrote:
> > >On May 22 10:58, Christopher Faylor wrote:
> > >>On Wed, May 22, 2013 at 10:47:11AM +0200, Corinna Vinschen wrote:
> > >>>On May 21 21:43, Balaji Venkataraman wrote:
> > >>>>On Tue, May 21, 2013 at 9:19 PM, Balaji Venkataraman wrote:
> > >>>>
> > >>>>>My question is whether there is a way to include the full path to the .dll
> > >>>>>while creating the .exe - much like how cmake "link_directories" or
> > >>>>>"target_link_libraries" allows you to - for e.g. on Linux (an ldd on the
> > >>>>>executable file shows the full path to the .so file and thus
> > >>>>>precludes the need to explicitly set LD_LIBRARY_PATH). While this is not a
> > >>>>>cmake question (or a cmake mailing list) if you have experience solving
> > >>>>>this problem using cmake, would appreciate those insights as well.
> > >>>>
> > >>>>I found this while looking for cygwin RPATH:
> > >>>>http://www.cmake.org/pipermail/cmake/2007-October/017267.html. Perhaps
> > >>>>the lack of RPATH support on Windows/Cygwin is the reason?
> > >>>
> > >>>RPATH is an ELF feature. Full paths to DLLs are not supported by the
> > >>>PE/COFF executable format. Also, Cygwin DLLs are still loaded by the
> > >>>Windows loader, so POSIX paths won't work, and full Windows paths won't
> > >>>make much sense, given that Cygwin is not always installed into
> > >>>C:\cygwin.
> > >>>
> > >>>The solution for this would be an ELF loader in Cygwin and a Cygwin
> > >>>linker which produces ELF DLLs by default. But that's quite a big
> > >>>project on its own and nobody seemed to have fun, time, or money, to
> > >>>implement this.
> > >>
> > >>So, maybe *next* Thursday then?
> > >
> > >Alas, I still have no cat...
> >
> > Can someone *please* donate a cat for Corinna?
>
> Oh, please, no!
>
>
> Corinna
*Mails a litter of kittens to Corinna*
Robert Pendell
A perfect world is one of chaos.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple