public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc and g++  compilation option to add -rpath (not in FAQ)
@ 1999-03-18 13:41 Achim Bohnet
  1999-03-19  0:14 ` Alexandre Oliva
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Achim Bohnet @ 1999-03-18 13:41 UTC (permalink / raw)
  To: egcs

I have the need to add -rpath <egcs-prefix-dir>/lib  everytime the C/C++
frontends invoke the link/loader behind the scene -rpath <egcs-prefix-dir>/lib.

I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
help.

The solution to add -rpath to every is error prone and I can't use
LD_LIBRARY_PATH because this would confuse other C++ apps because
the the shared C++ libs are not binary compatible.

They are not binary compatible because I can't use GNU as (not supported
on Digital Unix) and in order too
prevent 'Line too long' errors of the Digital Unix assembler I had to enable
flag_do_squangling = 1 in gcc/cp/decl2.c as described in
http://egcs.cygnus.com/faq.html#squangle

One solution might be to put a ld wrapper into <egcs-prefix-dir>/bin
that add -rpath ... to the arguments before it invokes the real ld.  But
Hope that there is a way to specify it during configure/bootstrap
time so I don't have to cheat.

A second solution would be to not use shared libs but this would be
really pity :-)

Thanks in advance for any advise,
Achim

--
If you life in the Europian Union and you don't like spam then
support the petition:
    Vote against Spam! http://www.politik-digital.de/spam/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-18 13:41 gcc and g++ compilation option to add -rpath (not in FAQ) Achim Bohnet
@ 1999-03-19  0:14 ` Alexandre Oliva
       [not found]   ` < oroglpx5mw.fsf@dcc.unicamp.br >
  1999-03-31 23:46   ` Alexandre Oliva
       [not found] ` < 199903182141.WAA04071@o06.xray.mpe.mpg.de >
  1999-03-31 23:46 ` Achim Bohnet
  2 siblings, 2 replies; 10+ messages in thread
From: Alexandre Oliva @ 1999-03-19  0:14 UTC (permalink / raw)
  To: Achim Bohnet; +Cc: egcs

On Mar 18, 1999, Achim Bohnet <ach@mpe.mpg.de> wrote:

> I have the need to add -rpath <egcs-prefix-dir>/lib  everytime the C/C++
> frontends invoke the link/loader behind the scene -rpath <egcs-prefix-dir>/lib.

> I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
> help.

You can modify the specs file (installed in gcc-lib/*/*) so as to add
whatever options you want to the link command.  You may do that in the
*link or *lib spec, for example.  IMO, this tip should be added to the
FAQ.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brazil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
       [not found] ` < 199903182141.WAA04071@o06.xray.mpe.mpg.de >
@ 1999-03-19  1:04   ` Martin v. Loewis
  1999-03-31 23:46     ` Martin v. Loewis
  0 siblings, 1 reply; 10+ messages in thread
From: Martin v. Loewis @ 1999-03-19  1:04 UTC (permalink / raw)
  To: ach; +Cc: egcs

> One solution might be to put a ld wrapper into <egcs-prefix-dir>/bin
> that add -rpath ... to the arguments before it invokes the real ld.  But
> Hope that there is a way to specify it during configure/bootstrap
> time so I don't have to cheat.

You don't have to configure the compiler differently. Just modify the
file 'specs' found in the same directory where 'cc1' is installed.

Regards,
Martin

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
       [not found]   ` < oroglpx5mw.fsf@dcc.unicamp.br >
@ 1999-03-21 10:07     ` Gerald Pfeifer
  1999-03-24  0:27       ` Alexandre Oliva
  1999-03-31 23:46       ` Gerald Pfeifer
  0 siblings, 2 replies; 10+ messages in thread
From: Gerald Pfeifer @ 1999-03-21 10:07 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: Achim Bohnet, egcs

On 19 Mar 1999, Alexandre Oliva wrote:
>> I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
>> help.
> You can modify the specs file (installed in gcc-lib/*/*) so as to add
> whatever options you want to the link command.  You may do that in the
> *link or *lib spec, for example.  IMO, this tip should be added to the
> FAQ.

Would you mind adding it? ;-)  (Consider it approved, just send the patch
to egcs-patches after installation.)

Thanks!
Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-21 10:07     ` Gerald Pfeifer
@ 1999-03-24  0:27       ` Alexandre Oliva
  1999-03-31 23:46         ` Alexandre Oliva
  1999-03-31 23:46       ` Gerald Pfeifer
  1 sibling, 1 reply; 10+ messages in thread
From: Alexandre Oliva @ 1999-03-24  0:27 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: egcs-patches

On Mar 21, 1999, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:

> On 19 Mar 1999, Alexandre Oliva wrote:
>> You can modify the specs file (installed in gcc-lib/*/*) so as to add
>> whatever options you want to the link command.  You may do that in the
>> *link or *lib spec, for example.  IMO, this tip should be added to the
>> FAQ.

> Would you mind adding it? ;-)  (Consider it approved, just send the patch
> to egcs-patches after installation.)

Ok, I'm installing the attached patch, after updating the `Last
modified' date.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-21 10:07     ` Gerald Pfeifer
  1999-03-24  0:27       ` Alexandre Oliva
@ 1999-03-31 23:46       ` Gerald Pfeifer
  1 sibling, 0 replies; 10+ messages in thread
From: Gerald Pfeifer @ 1999-03-31 23:46 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: Achim Bohnet, egcs

On 19 Mar 1999, Alexandre Oliva wrote:
>> I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
>> help.
> You can modify the specs file (installed in gcc-lib/*/*) so as to add
> whatever options you want to the link command.  You may do that in the
> *link or *lib spec, for example.  IMO, this tip should be added to the
> FAQ.

Would you mind adding it? ;-)  (Consider it approved, just send the patch
to egcs-patches after installation.)

Thanks!
Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-19  1:04   ` Martin v. Loewis
@ 1999-03-31 23:46     ` Martin v. Loewis
  0 siblings, 0 replies; 10+ messages in thread
From: Martin v. Loewis @ 1999-03-31 23:46 UTC (permalink / raw)
  To: ach; +Cc: egcs

> One solution might be to put a ld wrapper into <egcs-prefix-dir>/bin
> that add -rpath ... to the arguments before it invokes the real ld.  But
> Hope that there is a way to specify it during configure/bootstrap
> time so I don't have to cheat.

You don't have to configure the compiler differently. Just modify the
file 'specs' found in the same directory where 'cc1' is installed.

Regards,
Martin

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-19  0:14 ` Alexandre Oliva
       [not found]   ` < oroglpx5mw.fsf@dcc.unicamp.br >
@ 1999-03-31 23:46   ` Alexandre Oliva
  1 sibling, 0 replies; 10+ messages in thread
From: Alexandre Oliva @ 1999-03-31 23:46 UTC (permalink / raw)
  To: Achim Bohnet; +Cc: egcs

On Mar 18, 1999, Achim Bohnet <ach@mpe.mpg.de> wrote:

> I have the need to add -rpath <egcs-prefix-dir>/lib  everytime the C/C++
> frontends invoke the link/loader behind the scene -rpath <egcs-prefix-dir>/lib.

> I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
> help.

You can modify the specs file (installed in gcc-lib/*/*) so as to add
whatever options you want to the link command.  You may do that in the
*link or *lib spec, for example.  IMO, this tip should be added to the
FAQ.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brazil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-24  0:27       ` Alexandre Oliva
@ 1999-03-31 23:46         ` Alexandre Oliva
  0 siblings, 0 replies; 10+ messages in thread
From: Alexandre Oliva @ 1999-03-31 23:46 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: egcs-patches

On Mar 21, 1999, Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> wrote:

> On 19 Mar 1999, Alexandre Oliva wrote:
>> You can modify the specs file (installed in gcc-lib/*/*) so as to add
>> whatever options you want to the link command.  You may do that in the
>> *link or *lib spec, for example.  IMO, this tip should be added to the
>> FAQ.

> Would you mind adding it? ;-)  (Consider it approved, just send the patch
> to egcs-patches after installation.)

Ok, I'm installing the attached patch, after updating the `Last
modified' date.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists

^ permalink raw reply	[flat|nested] 10+ messages in thread

* gcc and g++  compilation option to add -rpath (not in FAQ)
  1999-03-18 13:41 gcc and g++ compilation option to add -rpath (not in FAQ) Achim Bohnet
  1999-03-19  0:14 ` Alexandre Oliva
       [not found] ` < 199903182141.WAA04071@o06.xray.mpe.mpg.de >
@ 1999-03-31 23:46 ` Achim Bohnet
  2 siblings, 0 replies; 10+ messages in thread
From: Achim Bohnet @ 1999-03-31 23:46 UTC (permalink / raw)
  To: egcs

I have the need to add -rpath <egcs-prefix-dir>/lib  everytime the C/C++
frontends invoke the link/loader behind the scene -rpath <egcs-prefix-dir>/lib.

I've checked the FAQ http://egcs.cygnus.com/faq.html#rpath but this does not
help.

The solution to add -rpath to every is error prone and I can't use
LD_LIBRARY_PATH because this would confuse other C++ apps because
the the shared C++ libs are not binary compatible.

They are not binary compatible because I can't use GNU as (not supported
on Digital Unix) and in order too
prevent 'Line too long' errors of the Digital Unix assembler I had to enable
flag_do_squangling = 1 in gcc/cp/decl2.c as described in
http://egcs.cygnus.com/faq.html#squangle

One solution might be to put a ld wrapper into <egcs-prefix-dir>/bin
that add -rpath ... to the arguments before it invokes the real ld.  But
Hope that there is a way to specify it during configure/bootstrap
time so I don't have to cheat.

A second solution would be to not use shared libs but this would be
really pity :-)

Thanks in advance for any advise,
Achim

--
If you life in the Europian Union and you don't like spam then
support the petition:
    Vote against Spam! http://www.politik-digital.de/spam/


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-18 13:41 gcc and g++ compilation option to add -rpath (not in FAQ) Achim Bohnet
1999-03-19  0:14 ` Alexandre Oliva
     [not found]   ` < oroglpx5mw.fsf@dcc.unicamp.br >
1999-03-21 10:07     ` Gerald Pfeifer
1999-03-24  0:27       ` Alexandre Oliva
1999-03-31 23:46         ` Alexandre Oliva
1999-03-31 23:46       ` Gerald Pfeifer
1999-03-31 23:46   ` Alexandre Oliva
     [not found] ` < 199903182141.WAA04071@o06.xray.mpe.mpg.de >
1999-03-19  1:04   ` Martin v. Loewis
1999-03-31 23:46     ` Martin v. Loewis
1999-03-31 23:46 ` Achim Bohnet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).