www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/05/21:41:27

From: "Tim \"Zastai\" Van Holder" <zastai AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Possible make breakage
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <3uO85.30140$ko1.653025@afrodite.telenet-ops.be>
Date: Wed, 05 Jul 2000 22:17:35 GMT
NNTP-Posting-Host: 213.224.63.5
X-Trace: afrodite.telenet-ops.be 962835455 213.224.63.5 (Thu, 06 Jul 2000 00:17:35 MET DST)
NNTP-Posting-Date: Thu, 06 Jul 2000 00:17:35 MET DST
Organization: Pandora - Met vlotte tred op Internet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 1000705154640 DOT 13388B-100000 AT is...
> You need to put "SHELL = /bin/sh" somewhere in the Makefile, and then
> Make will Do The Right Thing.
Apparently, not all the time... In automake 1.4a, a script (depcomp) is used
to generate dependencies while also compiling the relevant file; it gets
invoked like this:

.c.o:
    source='$<' object='$@' libtool=no \
    depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
    $(CCDEPMODE) $(depcomp) \
    $(COMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<

with depcomp = $(SHELL) $(srcdir)/depcomp

With the DJGPP port of make, this does not work (the script never sees the
variables). As a workaround in my port (still under development, although I
may release it soon), I enclosed the entire statement in $(SHELL) -c
"<statement here>". This did work (although makefiles using quotes in their
compilation switches now need patching). I'm at a loss as to why this is; if
the same method of invocation is used in a script in bash, it works fine. So
my guess is that it's somehow make's fault.
Any thoughts are appreciated (especially helpful ones :) ).


--
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)




- Raw text -


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