Bug in GNU Prolog 1.3.0: `gplc' ignores the `--c-compiler' option

Roberto Bagnara <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Organization Department of Mathematics, University of Parma, Italy
Message-ID <[email protected]>
Please do not be scared by the long `gplc' command line
after the signature.
Just notice that

1) we pass the option `--c-compiler /usr/local/bin/c++' to `gplc';
2) despite that, in the linking phase, `gplc' uses `gcc' to
    perform the job.

If anyone has a patch for this, we would appreciate very
much hearing about it.
All the best,

     Roberto

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:[email protected]

$ gplc -v --c-compiler /usr/local/bin/c++ -o ppl_gprolog     ppl_gprolog.pl     .libs/libppl_gprolog.a     -L '-L../../../src/.libs -lppl -L../../../Watchdog/.libs -lpwl -lgmpxx -lgmp'Prolog compiler (GNU Prolog) 1.3.0
By Daniel Diaz
Copyright (C) 1999-2007 Daniel Diaz
GNU Prolog comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Prolog
under the terms of the GNU General Public License.
For more information about these matters, see the files named COPYING.

Path used: /usr/lib64/gprolog-1.3.0

*** Compiling

--- file: ppl_gprolog.pl
pl2wam -o /tmp/gplcSoQQsb.wam ppl_gprolog.pl
wam2ma -o /tmp/gplcBDwxLc.ma /tmp/gplcSoQQsb.wam
delete /tmp/gplcSoQQsb.wam
ma2asm -o /tmp/gplckSce4d.s /tmp/gplcBDwxLc.ma
delete /tmp/gplcBDwxLc.ma
as -o /tmp/gplc36SUmf.o /tmp/gplckSce4d.s
delete /tmp/gplckSce4d.s

*** Linking

gcc  -o ppl_gprolog /tmp/gplc36SUmf.o .libs/libppl_gprolog.a -L../../../src/.libs -lppl -L../../../Watchdog/.libs -lpwl -lgmpxx -lgmp /usr/lib64/gprolog-1.3.0/lib/all_pl_bips.o /usr/lib64/gprolog-1.3.0/lib/all_fd_bips.o /usr/lib64/gprolog-1.3.0/lib/top_level.o /usr/lib64/gprolog-1.3.0/lib/debugger.o /usr/lib64/gprolog-1.3.0/lib/libbips_fd.a /usr/lib64/gprolog-1.3.0/lib/libengine_fd.a /usr/lib64/gprolog-1.3.0/lib/libbips_pl.a /usr/lib64/gprolog-1.3.0/lib/libengine_pl.a /usr/lib64/gprolog-1.3.0/lib/liblinedit.a -lm
delete /tmp/gplc36SUmf.o
$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.