public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* corresponding option in GCC for -brtl
       [not found]   ` <34C93EFE33190745869639BBB18AE4A696687B@BLR-MSG-01.i-flex.com>
@ 2007-06-06  9:13     ` Dhiraj.Nilange
  2007-06-06 11:50       ` Michael Haubenwallner
  0 siblings, 1 reply; 2+ messages in thread
From: Dhiraj.Nilange @ 2007-06-06  9:13 UTC (permalink / raw)
  To: gcc-help

Hi,

With IBM's xlc_r compiler there is one option -brtl.

xlc_r -brtl .....

This option does the following:-

-brtl     Tells the linkage editor to accept both .so and .a library file types.

I am using gcc compiler now. I want to know what is the corresponding option in gcc to achieve 
the same thing?

After going through some webpages I tried  this:-

-Wl,-brtl

But with this I get linker error:-

/usr/bin/ld: invalid BFD target `rtl'

Given below is my full command line (linking stage):-


gcc -D__UNIX__ -D__I18N__ -D__UNICODE_UNIX__ -D__ORACLE__  -m64  -fPIC 
-o mylibfile.so -I.  file1.o  file2.o  file3.o  file4.o -Wl,-brtl 
-shared -L/oracle/ora10gRel2/lib -lclntsh -lpthread 



By the way my OS is Linux(RH5).


Thanks & Regards,
Dhiraj


DISCLAIMER:
This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore,  does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version.

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

* Re: corresponding option in GCC for -brtl
  2007-06-06  9:13     ` corresponding option in GCC for -brtl Dhiraj.Nilange
@ 2007-06-06 11:50       ` Michael Haubenwallner
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Haubenwallner @ 2007-06-06 11:50 UTC (permalink / raw)
  To: Dhiraj.Nilange; +Cc: gcc-help

On Wed, 2007-06-06 at 14:44 +0530, Dhiraj.Nilange@iflexsolutions.com
wrote:
> Hi,
> 
> With IBM's xlc_r compiler there is one option -brtl.
> 
> xlc_r -brtl .....

More exactly, it is a linker flag, which xlc knows and passes to ld.

> 
> This option does the following:-
> 
> -brtl     Tells the linkage editor to accept both .so and .a library file types.

Many (most?) non-AIX linkers do not have some kind of this flag, as this
is the default behaviour there. See also ld(1) manpage.

> 
> I am using gcc compiler now. I want to know what is the corresponding option in gcc to achieve 
> the same thing?
> 
> After going through some webpages I tried  this:-
> 
> -Wl,-brtl

"-Wl,-brtl" informs gcc to pass "-brtl" to ld.

> 
> But with this I get linker error:-
> 
> /usr/bin/ld: invalid BFD target `rtl'
> 
> Given below is my full command line (linking stage):-
> 
> 
> gcc -D__UNIX__ -D__I18N__ -D__UNICODE_UNIX__ -D__ORACLE__  -m64  -fPIC 
> -o mylibfile.so -I.  file1.o  file2.o  file3.o  file4.o -Wl,-brtl 
> -shared -L/oracle/ora10gRel2/lib -lclntsh -lpthread 
> 
> 
> 
> By the way my OS is Linux(RH5).

This is the most important information.
You don't need any flag to have "-brtl"-behaviour on Linux.

HTH, haubi
-- 


-- 
20. Juni 2007 
Salomon Automation am 2. Schweizerischen Supply Chain Management Forum der GS1 Schweiz in Baden. Tagungsort: Trafohalle Baden, Schweiz

20. Juni 2007
MoveRetail-Handelstag, Hamburg
Die MoveRetail Partner, Salomon Automation, maxess systemhaus, Superdata, Remira, POS Systemhaus und Mosaic veranstalten den 1. MoveRetail-Handelstag.
Tagungsort: Steigenberger Hotel, Hamburg

28. Juni 2007
6. BVL Logistiktag Steiermark in der WAMAS City, Friesach bei Graz
"Trends in der Logistik ": hoch automatisierte Systeme, mobile Waren- und Leergutverfolgung im Lebensmittelhandel und Generalunternehmerschaft versus Einzelprojekte.
 
Termin: 28. Juni 2007, ab 15.00 Uhr
Ort: Salomon Automation, Friesachstraße 15, 8114 Friesach bei Graz, Österreich
 

Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz
Sitz der Gesellschaft: Friesach bei Graz
UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz


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

end of thread, other threads:[~2007-06-06 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <34C93EFE33190745869639BBB18AE4A6966877@BLR-MSG-01.i-flex.com>
     [not found] ` <34C93EFE33190745869639BBB18AE4A6966879@BLR-MSG-01.i-flex.com>
     [not found]   ` <34C93EFE33190745869639BBB18AE4A696687B@BLR-MSG-01.i-flex.com>
2007-06-06  9:13     ` corresponding option in GCC for -brtl Dhiraj.Nilange
2007-06-06 11:50       ` Michael Haubenwallner

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).