delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/11/19/04:08:54

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: <djgpp-workers AT delorie DOT com>
Subject: RE: Help: Isn't libdbg the debugging version of libc?
Date: Sun, 19 Nov 2000 10:10:27 +0100
Message-ID: <NBBBIOJKJBNCHJBEKHLOKEPOCBAA.tim.van.holder@pandora.be>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <5.0.1.4.0.20001118181723.00a5b780@pop5.banet.net>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA25968
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> ---------Start makefile-----------------------------
> AS := $(DJDIR)/bin/as
> GAS_VERSION    := $(subst ., ,$(shell $(AS) --version))

Just a minor caveat: it is possible a user has as.exe in $DJDIR/lib/gcc-lib/2.95.2/, so a test similar to the one for ld.exe may be required in order for optimum compatibility.
Note that you may want to include the compiler flags, as they can affect the path searched by gcc (notably -B, -b, -m (for multilib) and -V can have this effect). These will not usually be used when building DJGPP, but we might as well support their use).

AS := $(shell $(CROSS_GCC) $(GCC_OPT) -print-prog-name=as)
AS := $(subst \,/,$(AS))

LD := $(shell $(CROSS_GCC) $(GCC_OPT) -print-prog-name=ld)
LD := $(subst \,/,$(LD))

ifeq ($(LIBGCCA),)
LIBGCCA := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=libgcc.a)
LIBGCCA := $(subst \,/,$(LIBGCCA))
export LIBGCCA
endif

ifeq ($(DJGPP_DJL),)
DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp.djl)
# Handle systems without djgpp.djl (recent binutils don't need it)
ifneq ($(DJGPP_DJL),djgpp.djl)
DJGPP_DJL := -T $(subst \,/,$(DJGPP_DJL))
else
DJGPP_DJL :=
endif
export DJGPP_DJL
endif

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019