[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Request for macro including RPATH
From: |
Ronald Landheer-Cieslak |
Subject: |
Re: Request for macro including RPATH |
Date: |
Tue, 8 Jul 2003 14:43:56 +0200 (CEST) |
I'm by no means an automake developer, but what you're looking for is
already done by Libtool.
File: libtool.info, Node: Link mode
`-rpath LIBDIR'
If OUTPUT-FILE is a library, it will eventually be installed in
LIBDIR. If OUTPUT-FILE is a program, add LIBDIR to the run-time
path of the program.
HTH
rlc
On Tue, 8 Jul 2003 address@hidden wrote:
> 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
>
>