From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Wragg To: help-gcc@gnu.org Subject: Re: what is -rpath supposed to do? Date: Thu, 09 Dec 1999 16:32:00 -0000 Message-id: References: <82nuhn$15r43@estavous.sfr.fr> X-SW-Source: 1999-12/msg00138.html nubis@ban.osiris.home () writes: > On Thu, 9 Dec 1999 10:59:17 +0100, Cegetel > wrote: > >Hi all, I'm trying to build Apache 1.3.9 for my Linux box (Suse 6.2). > >But there's a -rpath option used in the configuration file that seems > >not to be known by gcc... As you could expect, a path follows this > >option... > > The -rpath option should given to the linker ld. It is the same as -L > for gcc. I rember compiling apache I had the same problem and changed > all -rpath to -L in the Makefiles. Maybe not the propper method to > this, but worked for me. -rpath is certainly not the same as -L. They have very different purposes; see the ld info pages for what -rpath really does. gcc does not understand -rpath, because it is a linker option. It seems strange that apache would be passing this to gcc. The fix is to tell gcc that the -rpath option should be passed on to the linker, with -Wl,-rpath, David Wragg From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Wragg To: help-gcc@gnu.org Subject: Re: what is -rpath supposed to do? Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: References: <82nuhn$15r43@estavous.sfr.fr> X-SW-Source: 1999-12n/msg00138.html Message-ID: <19991231222400.kjr_eFTYmc8yV6wnqhs4Gb2OeigbpaGdhiI8_thPxo8@z> nubis@ban.osiris.home () writes: > On Thu, 9 Dec 1999 10:59:17 +0100, Cegetel > wrote: > >Hi all, I'm trying to build Apache 1.3.9 for my Linux box (Suse 6.2). > >But there's a -rpath option used in the configuration file that seems > >not to be known by gcc... As you could expect, a path follows this > >option... > > The -rpath option should given to the linker ld. It is the same as -L > for gcc. I rember compiling apache I had the same problem and changed > all -rpath to -L in the Makefiles. Maybe not the propper method to > this, but worked for me. -rpath is certainly not the same as -L. They have very different purposes; see the ld info pages for what -rpath really does. gcc does not understand -rpath, because it is a linker option. It seems strange that apache would be passing this to gcc. The fix is to tell gcc that the -rpath option should be passed on to the linker, with -Wl,-rpath, David Wragg