Mail Archives: djgpp/1997/05/17/11:56:12
>
> 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 -