Edit spectral/xspec/src/makefile.xan to set the LFUNLIB variable as indicated in the line that is commented out. Now