Author: Robert Hyatt
Date: 15:38:32 11/01/03
Go up one level in this thread
On November 01, 2003 at 18:20:21, George Smith wrote: >On October 27, 2003 at 09:21:07, Robert Hyatt wrote: > >> >> >>If you compile with SMP support, you need to add -lpthread to the >>link line in the Makefile: >> >>crafty: $(objects) >> $(CC) $(LDFLAGS) -o crafty $(objects) -lm -lpthread $(LIBS) >> ^^^^^^^^^ >> >> >> >> @rm -f X86-elf.S >> @rm -f X86-aout.S > >Well I am on a single processor machine, so why would I want to compile with SMP >support? I am running a single Intel P3-800Mhz CPU, with Red Hat Linux 9. > >With the -lpthread option that you specified, now the source is compiling >successfully. This does not make sense to me. Why would adding an SMP option >cause the build to succeed? Because the default linux Makefile options have -DSMP and -DCPUS=4 as options, which includes SMP support. You can remove both of those from the Makefile and you would not need the pthreads library then...
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.