delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/17/11:56:12

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199705171553.AA076174404@typhoon.rose.hp.com>
Subject: Re: Help porting software (linux to dos)
To: jamesl AT albany DOT net
Date: Sat, 17 May 1997 8:53:24 PDT
Cc: djgpp AT delorie DOT com
In-Reply-To: <199705170419.AAA21893@keeper.albany.net>; from "Jim Lefavour" at May 17, 97 12:17 (midnight)

> 
> Anyone familiar with DOS's fdisk, and Linux's version of the 
> same, must be aware that the DOS version is severely inferior. I am 
> attempting to port the Linux version (under the GNU License, of 
> course) to DOS so that DOS users can have a more powerful version 
> available (including cfdisk!).
> 
> However, even tho the sources that I have (ver 2.6) compile fine, 
> when gcc calls the linker, it apparently adds "-lc_alias" to the 
> command line, and of course, can't find this file! I don't know what 
> is causing this, but I would like some help here.
> 
> 

There's a couple things going on here.  Presumably the -lc_alias is 
being added to the link line because the makefile tells it to.
Typically this is specified by setting a macro LIBS= to something and then
specifying the link line with $(LIBS).  You could get around this
by editing the makefile and removing the reference to c_alias.  The concern
though is that something references libc_alias.a.  This would cause the
link to fail with undefined symbols or something similar.  Now, if the
makefile is not the problem (very slim chance here), you could
also just bypass gcc and invoke ld directly.

I suspect that you will need to find a dj version of libc_alias.a though.


Andrew

- Raw text -


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