corresponding option in GCC for -brtl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux