On 25 apr 2006, at 11:21, Adrian Maier wrote:

Please try

make clean all OPT="-vtu"

That should make it clear why it doesn't want to use the new unixtype
(or why it wants to recompile it).

It is searching for UNIXTYPE  only in rtl/inc , while in fact unixtype
is in rtl/unix :

http://www.newsoftcontrol.ro/~am/gmake_clean_all_vtu.txt

Where could i add that directory so that the build system becomes aware of it ?

The Makefile compiled unixtype in the step before, and the result should be in the current directory. However, for some reason "-FE." is missing from the command line passed to the compiler. If you look at 2.0.0's Makefile in rtl/freebsd (and rtl/netbsd), it contains:

ifndef COMPILER_TARGETDIR
COMPILER_TARGETDIR=.
endif
...
ifdef COMPILER_TARGETDIR
override FPCOPT+=-FE$(COMPILER_TARGETDIR)
ifeq ($(COMPILER_TARGETDIR),.)
override TARGETDIRPREFIX=
else
override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
endif
endif

The quoted code above adds "-FE." to the compiler command line. For some reason this doesn't seem to work in your Makefile, which results in the compiled units being put in the directory where their source is located. Consequently, they cannot be found later on.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to