still error:
g++ -Wall -Wextra -O2 -fomit-frame-pointer -march=native -L/usr/local/lib -L/usr/lib -I/usr/local/include -I/usr/include -IxptMiner/includes/ -o xptminer xptMiner/ticker.o xptMiner/main.o xptMiner/sha2.o xptMiner/xptClient.o xptMiner/protosharesMiner.o xptMiner/primecoinMiner.o xptMiner/keccak.o xptMiner/metis.o xptMiner/shavite.o xptMiner/metiscoinMiner.o xptMiner/scrypt.o xptMiner/scryptMinerCPU.o xptMiner/xptClientPacketHandler.o xptMiner/xptPacketbuffer.o xptMiner/xptServer.o xptMiner/xptServerPacketHandler.o xptMiner/transaction.o xptMiner/OpenCLObjects.o xptMiner/jhlib.o -lrt -lOpenCL -flto
/usr/bin/ld: xptMiner/main.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:102: recipe for target 'xptminer' failed
make: *** [xptminer] Error 1
Try it again. Somehow I forgot to include "-lpthread" in the compile options.