Dear automake developers, I'd like to point your attention at something missing in the current autoconf/automake utilities: In some cases it is necessary to control which "RPATH"s are compiled into shared libraries or executables, i.e. the search path information used by the dynamic linker to find shared objects. Unfortunately there is no standard switch for that across the various compilers, some examples:
gcc: gcc -Wl,-rpath,$(RPATH) Sun's Forte: cc -R $(RPATH) I'd welcome some sort of Makefile macro to abstract this, so that in my Makefile.am I could say: RPATH=whatever/I/want myprog: myprog.c $(CC) $(RPATH_OPTION) $< -o $@ Maybe something more intelligent would be good to allow different $(RPATH) macros in one Makefile. The most difficult part is probably in autoconf to detect the right combination of options - e.g. one could think of using the Sun ld with gcc, so that the option would look like this: -Wl,-R,$(RPATH) Keep up the good work! Best regards, Marek