(
Jump to the original submission)
Tue 08 Mar 2016 05:15:54 AM UTC, comment #7:
Good, thanks for the info, learn something new about make all the time.
The change was made in the nan package to fix a specific problem, see http://hg.code.sf.net/p/octave/NaN/rev/3931a2259cb2
Not sure if this should be addressed in configure_make.m as you suggest or if it's limited scope enough to be fixed in one package. Nan package could try setting CC with something like
|
Mon 07 Mar 2016 09:45:35 PM UTC, comment #6:
running make --no-builtin-variables, makes it use the ?= rule.
So I guess internally, make sets CC to cc, prior to checking ?= etc.
Running make -p | grep CC:
|
Mon 07 Mar 2016 09:36:00 PM UTC, comment #5:
In octave:
In windows, using the msys make that is packaged with mxe octave,
test makefile:
Output is CC=cc
If I run make CC=gcc
Output is CC=gcc
If I change topline to CC := gcc
Output is CC=gcc
In Linux (I tested with fedora) it behaves the same ?= does not work for setting CC to a default if CC is not externally set. (it sets it to cc instead)
So it is at least consistant in the two OSs I tried.
|
Mon 07 Mar 2016 07:29:39 PM UTC, comment #4:
The NaN package Makefile contains
so does that mean CC is "cc" in the Octave environment on Windows? If so, how is that environment configured, is it by Octave, Windows, or other?
|
Mon 07 Mar 2016 02:46:25 PM UTC, comment #3:
Adding maintainer to cc.
|
Mon 07 Mar 2016 02:27:21 PM UTC, comment #2:
In regards to running make from pkg install, I see that when it invokes configure, if the env vars for CC etc are not set, it uses those from mkoctfile.
When calling make, it doesn't not - in the case where there is a makefile, but not a configure script, should it pass along CC etc?
|
Mon 07 Mar 2016 02:22:41 PM UTC, comment #1:
Running setenv('CC', 'gcc') prior to pkg install and it will install ok.
|
Mon 07 Mar 2016 02:00:33 PM UTC, original submission:
Using mxe-octave, running in Windows 7.
3.0 fails at the same place.
2.8.1 installs ok.
|
(Note: upload size limit is set to 16384 kB, after insertion of the required
escape characters.)
Attach File(s):
Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one
Digest:
bug dependencies.
Follow 6 latest changes.