[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
configure --program-suffix could change gccjit library path?
Hello All,
Imagine that someone (e.g. a distribution packager) wants to have
several versions of gccjit like he does have several versions of
gcc. Concretely, GCC 5.2 with GCC 6.1
I would believe that the --program-suffix argument of ..../configure would be useful.
So he/she would compile GCC 5.2 with a --program-suffix=-5 argument to
configure, and would like the gcc compiler to go in
/usr/local/bin/gcc-5 and the GCCJIT library to go in
/usr/local/lib/libgccjit-5.so, so users of GCCJIT 5.1 would link with -lgccjit-5
And he/she would also compiile GCC 6.1 with a --program-suffix=-6
argument to configure and would like the gcc compiler to go in
/usr/local/bin/gcc-6 and the GCCJIT library to go in /usr/local/lib/libgccjit-6.so
so users ofg GCCJIT 6.1 woudl link with -lgccjit-6
Having two different GCCJIT libraries is IMHO a legitimate wish (likewise, one can
easily have several versions of LLVM libraries on Debian).
AFAIU, the --program-suffix is not yet understood by GCCJIT configuration things.
This is a wish, since I don't know autoconf well enough to be able to
propose any patch.
Or perhaps there is some existing configure switch already related to
location of libgccjit?
Regards.
--
Basile Starynkevitch http://starynkevitch.net/Basile/
France