From: Wolfgang Denk Date: Mon, 27 Jul 2009 00:11:17 +0200 Subject: [U-Boot] [PATCH v2] Make linking against libgcc configurable In-Reply-To: <1248347759-28119-1-git-send-email-wd@denx.de> References: <1248347380-27013-1-git-send-email-wd@denx.de> <1248347759-28119-1-git-send-email-wd@denx.de> Message-ID: <20090726221117.DF2DF832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1248347759-28119-1-git-send-email-wd@denx.de> you wrote: > Many (especially ARM) tool chains seem to come with broken or > otherwise unusable (for the purposes of builing U-Boot) run-time > support libraries `libgcc.a'. By using the "USE_PRIVATE_LIBGCC" > setting we allow to use alternative libraries instead. > > "USE_PRIVATE_LIBGCC" can either be set as an environment variable in > the shell, or as a command line argument when running "make", i. e. > $ make USE_PRIVATE_LIBGCC=yes > or > $ USE_PRIVATE_LIBGCC=yes > $ export USE_PRIVATE_LIBGCC > $ make > > The value of "USE_PRIVATE_LIBGCC" is the name of the directory which > contains the alternative run-time support library `libgcc.a'. The > special value "yes" selects the directory $(OBJTREE)/lib_$(ARCH) . > > Note that not all architectures provide an alternative `libgcc.a' in > their lib_$(ARCH) directories - so far, only ARM does. > > Signed-off-by: Wolfgang Denk > Cc: Jean-Christophe PLAGNIOL-VILLARD > Cc: Prafulla Wadaskar > cc: Stefan Roese > --- > v2: Removed crap left over from testing. > > Makefile | 12 +++++++++++- > board/trab/Makefile | 4 +--- > lib_arm/Makefile | 30 ++++++++++++++++++++++-------- > 3 files changed, 34 insertions(+), 12 deletions(-) Applied. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Men don't talk peace unless they're ready to back it up with war. -- Col. Green, "The Savage Curtain", stardate 5906.4