Problem solved. It didn't quite work with what you sent, but it led me to this, which did work:
RFLAG = -Xlinker -rpath RPATH = $(RFLAG) $(AOLSERVER)/lib Note that -Wl is *supposed* to pass the comma-separated list to the linker, removing the commas in the process. This doesn't appear to work as advertised: RPATH = -Wl,$(RFLAG),$(AOLSERVER)/lib Now I'm pondering whether to commit the changes to sourceforge; I'm not comfortable that this solution fixes my problem *AND* doesn't break the compile on other systems and platforms. thanks, Pete, /s. > Try changing the definitions to this: > > RFLAG = -Xlinker -rpath > RPATH = -Xlinker -Wl,$(RFLAG),$(AOLSERVER)/lib > > -Xlinker is a gcc switch to pass arguments to the linker. The man page > says that if the linker argument takes a parameter, then you must use > -Xlinker twice -- once for the argument and once for the parameter. It > specifically says that quoting the argument and parameter won't work. > > I think AOLserver used to invoke ld directly, in which case the -rpath > would have worked, but on some platforms or versions of gcc, particularly > with shared libraries, you just don't get the same output from ld as you > do from gcc, no matter what arguments you throw at it. It's probably > fixable, but it's just so much easier to use gcc for everything. > > Pete. > > >