[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] configure: add -Zargs-resp to LDFLAGS on OS/2
From: |
Gary V. Vaughan |
Subject: |
Re: [PATCH 3/4] configure: add -Zargs-resp to LDFLAGS on OS/2 |
Date: |
Wed, 19 Nov 2014 19:05:01 +0000 |
> On Nov 19, 2014, at 3:31 PM, Eric Blake <address@hidden> wrote:
>
> On 11/18/2014 08:54 PM, KO Myung-Hun wrote:
>> -Zargs-resp enables a response file support on OS/2.
>>
>> * configure.ac (LDFLAGS): add -Zargs-resp on *-*-os2*.
>> ---
>> configure.ac | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/configure.ac b/configure.ac
>> index 6dca663..2ca1576 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -217,6 +217,8 @@ M4_WITH_DMALLOC
>>
>> AC_CONFIG_COMMANDS([stamp-h], [[test -z "$CONFIG_HEADERS" || date >
>> stamp-h]])
>>
>> +AS_CASE([$host], [*-*-os2*], [LDFLAGS="$LDFLAGS -Zargs-resp"])
>> +
>
> You cannot assume $host is set unless you also guarantee that
> AC_CANONICAL_HOST was called. Gnulib happens to call it, but I wonder
> if we should also explicitly call it prior to this line so that someone
> copying it to another file doesn't run into problems.
I re-organised this patch slightly to avoid being overridden by the user's
LDFLAGS
setting... but I only used it for builds from the src directory, which might
not be
the intent of the original patch.
I'm not sure it's worth worrying about problems caused by wanton cut-n-pasting
from
configure.ac without understanding all the implications, or even that a manual
AC_CANONICAL_HOST is the solution -- after all, someone can still cut-n-paste
the
one without the other into another project.
Eric, by all means, if you disagree go ahead and make any additional changes you
consider sensible.
Cheers,
--
Gary V. Vaughan (gary AT gnu DOT org)
- [PATCH] OS/2 patches for 1.4 branch, KO Myung-Hun, 2014/11/18
- [PATCH 1/4] bootstrap: set and use PATH_SEPARATOR, KO Myung-Hun, 2014/11/18
- [PATCH 2/4] configure: append $EXEEXT suffix to /bin/sh, KO Myung-Hun, 2014/11/18
- [PATCH 3/4] configure: add -Zargs-resp to LDFLAGS on OS/2, KO Myung-Hun, 2014/11/18
- [PATCH 4/4] m4_esyscmd: fdopen() with a text mode explicitly on OS/2, KO Myung-Hun, 2014/11/18
- Re: [PATCH] OS/2 patches for 1.4 branch, Gary V. Vaughan, 2014/11/19