| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4A7A2271.1050401@gmail.com> |
| Date: | Thu, 06 Aug 2009 01:23:13 +0100 |
| From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> |
| User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Some library fail to be found when compiling a little program of GCC |
| References: | <24831027 DOT post AT talk DOT nabble DOT com> <4A79AD30 DOT 9060001 AT sbcglobal DOT net> <24838279 DOT post AT talk DOT nabble DOT com> |
| In-Reply-To: | <24838279.post@talk.nabble.com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
coolsand wrote:
> Hi, link command :
> /bin/arm-linux-ld -v $(LINKFLAGS) \
> $(HEAD) \
> $(CORE_FILES) \
> $(DRIVERS) \
> $(LIBS) \
> -o vivi-elf $(CLIBS)
> I use the 'LD' to link indeed, but I think using it is also correct when
> 'Gcc' be used for compiling .c file with some paraments.
> Could you give me the way to using the 'ld' instead of 'gcc'?
Just don't bother. Use arm-linux-gcc instead; it understands all the same
options and passes them through to ld, while adding the necessary -L options for
it to find the libraries.
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |