From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2979 invoked by alias); 6 Jun 2007 11:50:19 -0000 Received: (qmail 2970 invoked by uid 22791); 6 Jun 2007 11:50:17 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.salomon.at (HELO smtp.salomon.at) (193.186.16.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Jun 2007 11:50:12 +0000 Received: from servex01.wamas.com (servex01.salomon.at [172.28.2.2]) by smtp.salomon.at (8.12.10/8.12.10) with ESMTP id l56BdtiZ026065; Wed, 6 Jun 2007 13:39:57 +0200 (METDST) Received: from [172.28.8.78] ([172.28.8.78]) by servex01.wamas.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Jun 2007 13:39:55 +0200 Subject: Re: corresponding option in GCC for -brtl From: Michael Haubenwallner To: Dhiraj.Nilange@iflexsolutions.com CC: gcc-help@gcc.gnu.org In-Reply-To: <34C93EFE33190745869639BBB18AE4A696687C@BLR-MSG-01.i-flex.com> 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> Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 06 Jun 2007 11:50:00 -0000 Message-ID: <1181129995.23008.29.camel@sapc154> MIME-Version: 1.0 X-Mailer: Evolution 2.8.2.1 Content-Transfer-Encoding: quoted-printable X-Spam-Info: -3.812 () ALL_TRUSTED,AWL,BAYES_00 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-06/txt/msg00065.txt.bz2 On Wed, 2007-06-06 at 14:44 +0530, Dhiraj.Nilange@iflexsolutions.com wrote: > Hi, >=20 > With IBM's xlc_r compiler there is one option -brtl. >=20 > xlc_r -brtl ..... More exactly, it is a linker flag, which xlc knows and passes to ld. >=20 > This option does the following:- >=20 > -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. >=20 > I am using gcc compiler now. I want to know what is the corresponding opt= ion in gcc to achieve=20 > the same thing? >=20 > After going through some webpages I tried this:- >=20 > -Wl,-brtl "-Wl,-brtl" informs gcc to pass "-brtl" to ld. >=20 > But with this I get linker error:- >=20 > /usr/bin/ld: invalid BFD target `rtl' >=20 > Given below is my full command line (linking stage):- >=20 >=20 > gcc -D__UNIX__ -D__I18N__ -D__UNICODE_UNIX__ -D__ORACLE__ -m64 -fPIC=20 > -o mylibfile.so -I. file1.o file2.o file3.o file4.o -Wl,-brtl=20 > -shared -L/oracle/ora10gRel2/lib -lclntsh -lpthread=20 >=20 >=20 >=20 > 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 --=20 20. Juni 2007=20 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, R= emira, 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 L= eergutverfolgung im Lebensmittelhandel und Generalunternehmerschaft versus = Einzelprojekte. =20 Termin: 28. Juni 2007, ab 15.00 Uhr Ort: Salomon Automation, Friesachstra=DFe 15, 8114 Friesach bei Graz, =D6st= erreich =20 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=FCr Zivilrechtssachen Graz