delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/17/01:44:27

Date: Tue, 17 Feb 1998 08:42:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gordon Talge <gtalge AT pe DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: 'ln -s' problem
In-Reply-To: <34E90ADB.19C0@pe.net>
Message-ID: <Pine.SUN.3.91.980217084227.3136H-100000@is>
MIME-Version: 1.0

On Mon, 16 Feb 1998, Gordon Talge wrote:

> The problem is when I run the makefile
> everything works ok unitil it tries to use ln -s. I get something
> like this: 
> 
> d:/pgp5.0i/src/lib/bn
> Linking bn.h bnprime.h bngermain.h to public include
> D:/DJGPP/BIN/ln -s:../lib/bh../../lib/bn/bnprime.h

In the DJGPP port of `ln', "ln -s" only works for executables.  (DOS
doesn't support symlinks, but DJGPP can simulate symlinks to programs
because the stub can be told to run another program.)

For non-executables, you need to convert "ln -s" int just "ln".  Hard
links are simulated by copying files, which is what you want.

I'm not familiar with the way PGP is configured before you run Make,
but usually it is the job of a configuration script to figure out
whether the target system supports symlinks, and if not, use "ln"
instead of "ln -s".

If there's no configuration script that works for DJGPP, just edit the
Makefile and replace "ln -s" with "ln" in that case.

- Raw text -


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