Hi all,
I am (still) trying to build Julia, and I would like to set GCC (and gfortran and ld) to use /usr/local/* for linking and including search paths.
How can I do that at the top level of the project, "outside" of updating any Makefiles, so that I can run gmake and have it apply every call of ld and gcc and gfortran?
I have tried exporting
before calling gmake, but it doesn't seem to change anything when I run gmake from the top of the source directory.
I know I can set
and
for a given invocation of gcc, but I need it to default to these for the multiple invocations.
Thanks everybody -- for both the great ideas and the patience!
I am (still) trying to build Julia, and I would like to set GCC (and gfortran and ld) to use /usr/local/* for linking and including search paths.
How can I do that at the top level of the project, "outside" of updating any Makefiles, so that I can run gmake and have it apply every call of ld and gcc and gfortran?
I have tried exporting
Code:
CPPFLAGS='-I/usr/local/lib -I/usr/lib'
I know I can set
Code:
-l/usr/local/lib
Code:
-I/usr/local/include
Thanks everybody -- for both the great ideas and the patience!