delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/25/08:38:57

Date: Wed, 25 Aug 1999 12:42:00 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: pavenis AT lanet DOT lv
cc: djgpp-workers AT delorie DOT com
Subject: Re: new GCC port
In-Reply-To: <B0000099007@stargate.astr.lu.lv>
Message-ID: <Pine.SUN.3.91.990825123246.2834J-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 23 Aug 1999 pavenis AT lanet DOT lv wrote:

> Found one problem: lib/dxe.ld should also support long section names.

Fixed.  Thanks.

> Also building emu387.dxe takes dxe.ld from $DJDIR/lib but not ../../lib 
> when making in src/libemu. As result after patch build still fails as I'm 
> not building under DJGPP dierctory tree.

Does the following solve the problem?

*** src/dxe/dxegen.c~0	Sat Dec 12 17:23:42 1998
--- src/dxe/dxegen.c	Tue Aug 24 14:06:18 1999
*************** int main(int argc, char **argv)
*** 96,111 ****
      strcpy(command, "ld");
  #endif
      strcat(command, " -X -S -r -o dxe__tmp.o -L");
!     libdir = getenv("DJDIR");
!     if (!libdir)
      {
!       libdir = getenv("TOP");
        if (!libdir)
        {
  	fprintf(stderr, "Error: neither DJDIR nor TOP are set in environment\n");
  	exit(1);
        }
-       strcat(command, "../../");
      }
      strcat(command, libdir);
      strcat(command, "/lib ");
--- 96,112 ----
      strcpy(command, "ld");
  #endif
      strcat(command, " -X -S -r -o dxe__tmp.o -L");
!     libdir = getenv("TOP");
!     if (libdir)
!       strcat(command, "../../");
!     else
      {
!       libdir = getenv("DJDIR");
        if (!libdir)
        {
  	fprintf(stderr, "Error: neither DJDIR nor TOP are set in environment\n");
  	exit(1);
        }
      }
      strcat(command, libdir);
      strcat(command, "/lib ");



- Raw text -


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