This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: corresponding option in GCC for -brtl
- From: Michael Haubenwallner <michael dot haubenwallner at salomon dot at>
- To: Dhiraj dot Nilange at iflexsolutions dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 06 Jun 2007 13:39:55 +0200
- Subject: Re: corresponding option in GCC for -brtl
- References: <34C93EFE33190745869639BBB18AE4A6966877@BLR-MSG-01.i-flex.com> <34C93EFE33190745869639BBB18AE4A6966879@BLR-MSG-01.i-flex.com> <34C93EFE33190745869639BBB18AE4A696687B@BLR-MSG-01.i-flex.com> <34C93EFE33190745869639BBB18AE4A696687C@BLR-MSG-01.i-flex.com>
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