George Shapovalov wrote:
Thanks for a great compiler to everybody involved! I would like to inform you that I am writing an ebuild script to make gpc available in Gentoo Linux distribution. (http://www.gentoo.org)
In process I found the issue in the subject, thought it might be interesting. If I have "-pipe" in my CFLAGS when compiling gpc the compilation breaks when gpcpp is processing string.pas (removal of -pipe gets rid of the problem). Listing is included at the end of message.
Try this fix:
--- orig/p/rts/Makefile.in Fri Mar 1 00:44:30 2002 +++ p/rts/Makefile.in Tue Apr 9 10:21:09 2002 @@ -155,8 +155,11 @@
# The Pascal source is not used, but we have to provide any. # `-x Preprocessed-Pascal /dev/null' works as well, except on mingw. -needed-options: error.pas +needed-options: dummy.pas $(PC) $(RTS_CFLAGS) $(GPC_FLAGS) --print-needed-options "$<" 2> "$@" || true + +dummy.pas: + touch "$@"
$(GPCLIB): $(OBJS) -rm -f $(GPCLIB)
Also, INSTALL instructions say that I might need PDCurses under Linux to compile some crt programs. Is this a build-time dependency (when I compile gpc) or runtime (when I use gpc to compile some programs)? I guess the question is: should I have PDCurses installed when I compile gpc in order to be able to compile crt programs for use under X? Or will gpc pick the library up later when it is installed?
The latter.
What about ncurses, am I limited to terminal-only programs under X then?
ncurses programs run on terminals only (e.g., console, xterm). PDCurses produces native X11 programs on Unix.
Frank