x_tool_libs="-Wl,-Bstatic -lXaw -Wl,-Bdynamic -lXpm -lXmu -lXt" This isn't my bailiwick any more, but ... those options cannot just be hardwired in. 1) Neither -Wl, nor -Bstatic/dynamic are the right syntax for all linkers. 2) -lXpm does not exist on some systems. 3) linking Xaw statically seems wrong to me anyway. I'm sure none of this is news. What is the actual error?