Francesco Lombardi wrote:
GPC has no multilib support ATM. So only default version of `libgpc.a' is built. So you should either make interworking the defult at configure time (if possible, I do not know). Alternatively, you can set PFLAGS variable to pass extra flags to gpc during library build (something like `PFLAGS=-mthumb-interwork' ?).
Hope helps
I tried the second thing (PFLAGS), but I get similar warnings (interworking not enabled). BTW, there is a way to build libgpc only, without recompiling all gpc?
GCC Makefiles pass around a lot of variables, so running make in a subdirectory is tricky. However, if you remove `.o' and `.gpi' files from 'p/rts' directory, and them run `make', that should force re-build of libgpc (`make' should reasonably fast find out that there is nothing to do in other directories).
Did you check that your `PFLAGS' setting survived to libgpc build (look in the log for commands used to compile `rtsc.pas')? You probably need to set `PFLAGS' in environment like:
export PFLAGS=.... make
or just hand-edit `p/rts/Makefile' (I do not remember how to properly set `PFLAGS', but the purpose of `PFLAGS' is to pass extra options for compiling libgpc).