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.

Reply via email to