public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows
@ 2017-09-01  8:42 Olivier Hainque
  2017-09-11 14:30 ` [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows) Olivier Hainque
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Olivier Hainque @ 2017-09-01  8:42 UTC (permalink / raw)
  To: GCC Patches; +Cc: Olivier Hainque, Jerome Lambourg, Douglas B Rupp

[-- Attachment #1: Type: text/plain, Size: 945 bytes --]

Hello,

To convey the value of libsubdir to sub-makes, gcc/Makefile.in has

  # Flags to pass to recursive makes.
  # CC is set by configure.
  # ??? The choices here will need some experimenting with.

  export AR_FOR_TARGET
  ...
  export libsubdir

then:

  FLAGS_TO_PASS = \
  ...
  (libsubdir not here)

This is not working well on cygwin environments where environment
variable names are translated to uppercase (so sub-makes evaluating
the variable with the lowercase name don't get the value).

The attached patch is a suggestion to address this by simply adding
"libsubdir" to the list of explicit FLAGS_TO_PASS.

Used in-house for a while, with gcc-6 on a wide variety of host/target
configurations.

Bootstrapped and regression tested with mainline on x86_64-linux.

OK to commit ?

Thanks in advance,

With Kind Regards,

Olivier

2017-09-01  Jerome Lambourg  <lambourg@adacore.com>

	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.



[-- Attachment #2: gcc-libsubdir.diff --]
[-- Type: application/octet-stream, Size: 289 bytes --]

--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1161,6 +1161,7 @@ FLAGS_TO_PASS = \
 	"libexecsubdir=$(libexecsubdir)" \
 	"datarootdir=$(datarootdir)" \
 	"datadir=$(datadir)" \
+	"libsubdir=$(libsubdir)" \
 	"localedir=$(localedir)"
 #\f
 # Lists of files for various purposes.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows)
  2017-09-01  8:42 [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
@ 2017-09-11 14:30 ` Olivier Hainque
  2017-09-11 15:28   ` Michael Haubenwallner
  2017-09-25  7:33 ` [PING#2, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
  2017-10-31  1:20 ` [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Jeff Law
  2 siblings, 1 reply; 9+ messages in thread
From: Olivier Hainque @ 2017-09-11 14:30 UTC (permalink / raw)
  To: GCC Patches; +Cc: Olivier Hainque, Jerome Lambourg, Douglas B Rupp

Hello,

Ping for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html

>   Makefile.in:
>   ...
>   export libsubdir
> 
> This is not working well on cygwin environments where environment
> variable names are translated to uppercase (so sub-makes evaluating
> the variable with the lowercase name don't get the value).

> 2017-09-01  Jerome Lambourg  <lambourg@adacore.com>
> 
> 	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.

Thanks much in advance!

With Kind Regards,

Olivier

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows)
  2017-09-11 14:30 ` [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows) Olivier Hainque
@ 2017-09-11 15:28   ` Michael Haubenwallner
  2017-09-11 16:11     ` Olivier Hainque
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Haubenwallner @ 2017-09-11 15:28 UTC (permalink / raw)
  To: Olivier Hainque; +Cc: GCC Patches, Jerome Lambourg, Douglas B Rupp

Hi Oliver,

On 09/11/2017 04:30 PM, Olivier Hainque wrote:
> Hello,
> 
> Ping for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html
> 
>>   Makefile.in:
>>   ...
>>   export libsubdir
>>
>> This is not working well on cygwin environments where environment
>> variable names are translated to uppercase (so sub-makes evaluating
>> the variable with the lowercase name don't get the value).

just wondering if you can't update your Cygwin setup, as turning environment
variables to uppercase is not done by default in recent Cygwin any more, see
https://cygwin.com/cygwin-ug-net/using-cygwinenv.html

/haubi/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows)
  2017-09-11 15:28   ` Michael Haubenwallner
@ 2017-09-11 16:11     ` Olivier Hainque
  0 siblings, 0 replies; 9+ messages in thread
From: Olivier Hainque @ 2017-09-11 16:11 UTC (permalink / raw)
  To: Michael Haubenwallner
  Cc: Olivier Hainque, GCC Patches, Jerome Lambourg, Douglas B Rupp

Hello Michael,

> On Sep 11, 2017, at 17:28 , Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> wrote:

>>>  Makefile.in:
>>>  ...
>>>  export libsubdir
>>> 
>>> This is not working well on cygwin environments where environment
>>> variable names are translated to uppercase (so sub-makes evaluating
>>> the variable with the lowercase name don't get the value).
> 
> just wondering if you can't update your Cygwin setup, as turning environment
> variables to uppercase is not done by default in recent Cygwin any more, see
> https://cygwin.com/cygwin-ug-net/using-cygwinenv.html

Thanks for your input and for the pointer! Maybe we could update our
environment locally and forget about it. This might be useful for other
contexts as well.

Now it might be difficult, if not impossible, for some people, so if passing
the variable through an explicit assignment is expected to work as well, the
change would remain of interest IMO, just removing a dependency on a particular
environment setup.

With Kind Regards,

Olivier

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PING#2, Makefile] improve libsubdir variable transmission to sub-makes on Windows
  2017-09-01  8:42 [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
  2017-09-11 14:30 ` [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows) Olivier Hainque
@ 2017-09-25  7:33 ` Olivier Hainque
  2017-10-04  7:49   ` [PING#3, " Olivier Hainque
  2017-10-31  1:20 ` [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Jeff Law
  2 siblings, 1 reply; 9+ messages in thread
From: Olivier Hainque @ 2017-09-25  7:33 UTC (permalink / raw)
  To: GCC Patches; +Cc: Olivier Hainque, Jerome Lambourg, Douglas B Rupp

Hello,

Ping #2 for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html

>  Makefile.in:
>  ...
>  export libsubdir
> 
> This is not working well on cygwin environments where environment
> variable names are translated to uppercase (so sub-makes evaluating
> the variable with the lowercase name don't get the value).

> 2017-09-01  Jerome Lambourg  <lambourg@adacore.com>
> 
> 	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.

Thanks much in advance!

With Kind Regards,

Olivier

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PING#3, Makefile] improve libsubdir variable transmission to sub-makes on Windows
  2017-09-25  7:33 ` [PING#2, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
@ 2017-10-04  7:49   ` Olivier Hainque
  2017-10-26  8:44     ` [PING#4, Makefile] improve libsubdir variable transmission to sub-makes Olivier Hainque
  0 siblings, 1 reply; 9+ messages in thread
From: Olivier Hainque @ 2017-10-04  7:49 UTC (permalink / raw)
  To: GCC Patches
  Cc: Olivier Hainque, Jerome Lambourg, Douglas B Rupp, Alexandre Oliva

Hello,

Ping #3 for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html

please.

Took the liberty to cc a maintainer.

Thanks much in advance!

With Kind Regards,

Olivier

> On Sep 25, 2017, at 08:49 , Olivier Hainque <hainque@adacore.com> wrote:
> 
> Hello,
> 
> Ping #2 for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html
> 
>> Makefile.in:
>> ...
>> export libsubdir
>> 
>> This is not working well on cygwin environments where environment
>> variable names are translated to uppercase (so sub-makes evaluating
>> the variable with the lowercase name don't get the value).
> 
>> 2017-09-01  Jerome Lambourg  <lambourg@adacore.com>
>> 
>> 	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.
> 
> Thanks much in advance!
> 
> With Kind Regards,
> 
> Olivier
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PING#4, Makefile] improve libsubdir variable transmission to sub-makes
  2017-10-04  7:49   ` [PING#3, " Olivier Hainque
@ 2017-10-26  8:44     ` Olivier Hainque
  0 siblings, 0 replies; 9+ messages in thread
From: Olivier Hainque @ 2017-10-26  8:44 UTC (permalink / raw)
  To: GCC Patches; +Cc: Jerome Lambourg, Douglas B Rupp, Alexandre Oliva

Hello,

ping #4, please.

https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html

Thanks much in advance,

Olivier


> On 04 Oct 2017, at 09:16, Olivier Hainque <hainque@adacore.com> wrote:
> 
> Hello,
> 
> Ping #3 for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html
> 
> please.
> 
> Took the liberty to cc a maintainer.
> 
> Thanks much in advance!
> 
> With Kind Regards,
> 
> Olivier
> 
>> On Sep 25, 2017, at 08:49 , Olivier Hainque <hainque@adacore.com> wrote:
>> 
>> Hello,
>> 
>> Ping #2 for https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00017.html
>> 
>>> Makefile.in:
>>> ...
>>> export libsubdir
>>> 
>>> This is not working well on cygwin environments where environment
>>> variable names are translated to uppercase (so sub-makes evaluating
>>> the variable with the lowercase name don't get the value).
>> 
>>> 2017-09-01  Jerome Lambourg  <lambourg@adacore.com>
>>> 
>>> 	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.
>> 
>> Thanks much in advance!
>> 
>> With Kind Regards,
>> 
>> Olivier
>> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows
  2017-09-01  8:42 [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
  2017-09-11 14:30 ` [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows) Olivier Hainque
  2017-09-25  7:33 ` [PING#2, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
@ 2017-10-31  1:20 ` Jeff Law
  2017-10-31  9:31   ` Olivier Hainque
  2 siblings, 1 reply; 9+ messages in thread
From: Jeff Law @ 2017-10-31  1:20 UTC (permalink / raw)
  To: Olivier Hainque, GCC Patches; +Cc: Jerome Lambourg, Douglas B Rupp

On 09/01/2017 02:42 AM, Olivier Hainque wrote:
> Hello,
> 
> To convey the value of libsubdir to sub-makes, gcc/Makefile.in has
> 
>   # Flags to pass to recursive makes.
>   # CC is set by configure.
>   # ??? The choices here will need some experimenting with.
> 
>   export AR_FOR_TARGET
>   ...
>   export libsubdir
> 
> then:
> 
>   FLAGS_TO_PASS = \
>   ...
>   (libsubdir not here)
> 
> This is not working well on cygwin environments where environment
> variable names are translated to uppercase (so sub-makes evaluating
> the variable with the lowercase name don't get the value).
> 
> The attached patch is a suggestion to address this by simply adding
> "libsubdir" to the list of explicit FLAGS_TO_PASS.
> 
> Used in-house for a while, with gcc-6 on a wide variety of host/target
> configurations.
> 
> Bootstrapped and regression tested with mainline on x86_64-linux.
> 
> OK to commit ?
> 
> Thanks in advance,
> 
> With Kind Regards,
> 
> Olivier
> 
> 2017-09-01  Jerome Lambourg  <lambourg@adacore.com>
> 
> 	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.
OK.

Jeff

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows
  2017-10-31  1:20 ` [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Jeff Law
@ 2017-10-31  9:31   ` Olivier Hainque
  0 siblings, 0 replies; 9+ messages in thread
From: Olivier Hainque @ 2017-10-31  9:31 UTC (permalink / raw)
  To: Jeff Law; +Cc: Olivier Hainque, GCC Patches, Jerome Lambourg, Douglas B Rupp


> On Oct 31, 2017, at 00:07 , Jeff Law <law@redhat.com> wrote:

>> 	* Makefile.in (FLAGS_TO_PASS): Add libsubdir.
> OK.

:-) Thanks Jeff!

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-31  9:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01  8:42 [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
2017-09-11 14:30 ` [PING, Makefile] improve libsubdir variable transmission to sub-makes (for Windows) Olivier Hainque
2017-09-11 15:28   ` Michael Haubenwallner
2017-09-11 16:11     ` Olivier Hainque
2017-09-25  7:33 ` [PING#2, Makefile] improve libsubdir variable transmission to sub-makes on Windows Olivier Hainque
2017-10-04  7:49   ` [PING#3, " Olivier Hainque
2017-10-26  8:44     ` [PING#4, Makefile] improve libsubdir variable transmission to sub-makes Olivier Hainque
2017-10-31  1:20 ` [PATCH, Makefile] improve libsubdir variable transmission to sub-makes on Windows Jeff Law
2017-10-31  9:31   ` Olivier Hainque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).