Isaac Dunham
2012-09-10 06:11:13 UTC
Is there an argument to pcc equivalent to gcc's -print-file-name?
Background:
I sometimes use pcc with musl libc; while I haven't checked really
recently, pcc built everything except src/complex about a month ago.
(Workaround: mkdir nobild; mv src/complex nobild/ ; mv
include/complex.h nobild/)
But, linking properly requires hacking the Makefile--mainly to properly
locate libpcc:
it must be built with -ffreestanding, but some symbols from libpcc are
required. The path to libpcc is not passed to ld when -ffreestanding
is passed, so it must be manually added to the linker parameters.
There is a configure script to handle things like this, but to handle
PCC requires having some way to automatically locate libpcc.a.
Thanks,
Isaac Dunham
Background:
I sometimes use pcc with musl libc; while I haven't checked really
recently, pcc built everything except src/complex about a month ago.
(Workaround: mkdir nobild; mv src/complex nobild/ ; mv
include/complex.h nobild/)
But, linking properly requires hacking the Makefile--mainly to properly
locate libpcc:
it must be built with -ffreestanding, but some symbols from libpcc are
required. The path to libpcc is not passed to ld when -ffreestanding
is passed, so it must be manually added to the linker parameters.
There is a configure script to handle things like this, but to handle
PCC requires having some way to automatically locate libpcc.a.
Thanks,
Isaac Dunham