GNU Prolog bug report: `gplc' ignores the `--c-compiler' option (last attempt)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

GNU Prolog bug report: `gplc' ignores the `--c-compiler' option (last attempt)

Roberto Bagnara-2

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,


Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
mailto:[hidden email]

$ gplc -v --c-compiler /usr/local/bin/c++ -o ppl_gprolog \
     /home/roberto/ppl/altnum/old/ppl/interfaces/Prolog/GNU/ \
     .libs/libppl_gprolog.a \
     -L '-L../../../src/.libs -lppl -L../../../Watchdog/.libs -lpwl -lgmpxx -lgmp'
Prolog compiler (GNU Prolog) 1.2.18
By Daniel Diaz
Copyright (C) 1999-2004 Daniel Diaz
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/local/gprolog-1.2.18

*** Compiling

--- file: /home/roberto/ppl/altnum/old/ppl/interfaces/Prolog/GNU/
pl2wam -o /tmp/gplcpuLnmb.wam /home/roberto/ppl/altnum/old/ppl/interfaces/Prolog/GNU/
wam2ma -o /tmp/ /tmp/gplcpuLnmb.wam
delete /tmp/gplcpuLnmb.wam
ma2asm -o /tmp/gplcT8XOKd.s /tmp/
delete /tmp/
as -o /tmp/gplc4gknga.o /tmp/gplcT8XOKd.s
delete /tmp/gplcT8XOKd.s

*** Linking

gcc  -o ppl_gprolog /usr/local/gprolog-1.2.18/lib/obj_begin.o /tmp/gplc4gknga.o .libs/libppl_gprolog.a -L../../../src/.libs -lppl -L../../../Watchdog/.libs -lpwl -lgmpxx -lgmp /usr/local/gprolog-1.2.18/lib/all_pl_bips.o /usr/local/gprolog-1.2.18/lib/all_fd_bips.o /usr/local/gprolog-1.2.18/lib/top_level.o /usr/local/gprolog-1.2.18/lib/debugger.o /usr/local/gprolog-1.2.18/lib/libbips_fd.a /usr/local/gprolog-1.2.18/lib/libengine_fd.a /usr/local/gprolog-1.2.18/lib/libbips_pl.a /usr/local/gprolog-1.2.18/lib/obj_end.o /usr/local/gprolog-1.2.18/lib/libengine_pl.a /usr/local/gprolog-1.2.18/lib/liblinedit.a -lm
delete /tmp/gplc4gknga.o

Bug-prolog mailing list
[hidden email]