This is the mail archive of the
mailing list for the GCC project.
configure --program-suffix could change gccjit library path?
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: jit at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 2 Jul 2015 09:32:28 +0200
- Subject: configure --program-suffix could change gccjit library path?
- Authentication-results: sourceware.org; auth=none
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?
Basile Starynkevitch http://starynkevitch.net/Basile/