On 8 November 2011 13:56, Henry Vermaak <[email protected]> wrote: > Hi list > > I've got a problem with crti.o not being found when compiling certain > programs. Here's an example: > > /usr/local/lib/fpc/2.6.0/ppcarm -gl -Fu. -Fu../lcl/units/arm-linux > -Fu../components/lazutils/lib/arm-linux -Fu../lcl/units/arm-linux/gtk2 > -Fu/usr/local/lib/fpc/2.6.0/units/arm-linux/rtl -FE. -FU. > -Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.1 -Flinclude > -Fl/etc/ld.so.conf.d/*.conf -CfSOFT -darm svn2revisioninc.pas > Free Pascal Compiler version 2.6.0rc1 [2011/11/08] for arm > Copyright (c) 1993-2011 by Florian Klaempfl and others > Target OS: Linux for ARMEL > Compiling svn2revisioninc.pas > Assembling svn2revisioninc > Linking ./svn2revisioninc > /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? > /usr/local/lib/fpc/2.6.0/units/arm-linux/rtl/cprt0.o: In function > `_haltproc_eabi': > (.text+0x88): undefined reference to `_fini' > /usr/local/lib/fpc/2.6.0/units/arm-linux/rtl/cprt0.o: In function > `_haltproc_eabi': > (.text+0x90): undefined reference to `_init' > > When I add -Fl/usr/lib/arm-linux-gnueabi, the linking succeeds. It > seems like the -Fl/etc/ld.so.conf.d/*.conf option that gets added by > the compiler should work, since I've got the following under
Sorry, bad assumption, it's not the compiler. Fpcmake adds all the entries in /etc/ld.so.conf, which gets added in turn to -Fl option(s). The problem is that the entries in /etc/ld.so.conf may contain wildcards. Using $(wildcard $var) won't work if the entry doesn't contain a pattern, though, so each entry will have to be checked for wildcards. Henry _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
