libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-users] Re: Solving the "relink exe's" libtool problem[take 3]


From: Charles Wilson
Subject: Re: [Mingw-users] Re: Solving the "relink exe's" libtool problem[take 3]
Date: Mon, 20 Jan 2003 17:45:28 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

Bruce Korb wrote:
Earnie Boyd wrote:

This patch passes my test.  What do we need to do to get this accepted
into libtool cvs HEAD?


+  newargz[0] = xstrdup("/bin/sh");


This may not be the shell and there is no point allocating it.
It is fine to use it from static memory.

Okay, the second comment (use static string, not allocated memory) is easy enough. But what's the best way to use "the shell"? Do a unquoted replacement (<<EOF, not <<"EOF") e.g.

  ...
  newargz = XMALLOC(char *, argc+2);
EOF
$echo >> $cwrappersource <<EOF
  newargz[0] = \"$SHELL\";
EOF
$echo >> $cwrappersource <<"EOF"
  newargz[1] = fnqualify(argv[0]);
  ...

?

--Chuck






reply via email to

[Prev in Thread] Current Thread [Next in Thread]