public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: <Dhiraj.Nilange@iflexsolutions.com>
To: <gcc-help@gcc.gnu.org>
Subject: corresponding option in GCC for -brtl
Date: Wed, 06 Jun 2007 09:13:00 -0000	[thread overview]
Message-ID: <34C93EFE33190745869639BBB18AE4A696687C@BLR-MSG-01.i-flex.com> (raw)
In-Reply-To: <34C93EFE33190745869639BBB18AE4A696687B@BLR-MSG-01.i-flex.com>

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.

       reply	other threads:[~2007-06-06  9:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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     ` Dhiraj.Nilange [this message]
2007-06-06 11:50       ` Michael Haubenwallner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34C93EFE33190745869639BBB18AE4A696687C@BLR-MSG-01.i-flex.com \
    --to=dhiraj.nilange@iflexsolutions.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).