in reply to Problems with ExpatXS in Solaris 9

-L/mypath/expat-1.95.8/lib means look in /mypath/expat-1.95.8/lib, but you still need -lexpat which means link to expat$Config{lib_ext}