X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=Makefile.in;h=0305d28c9386a682e00cd9da605d7cc9c9a3c60e;hb=3bbd2f8f984e86fb7b58fdefd36768da80119169;hp=2ede05810ee5a83535ee0d023a10af7c867e9511;hpb=2992cbe0202e3b2fb79ecc49880c27cff3bcba11;p=deliverable%2Fbinutils-gdb.git diff --git a/Makefile.in b/Makefile.in index 2ede05810e..0305d28c93 100644 --- a/Makefile.in +++ b/Makefile.in @@ -105,6 +105,11 @@ GDB_NLM_DEPS = # the libraries. RPATH_ENVVAR = @RPATH_ENVVAR@ +# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path +# is used instead of the directory itself to avoid including built +# executables in PATH. +GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@ + # Build programs are put under this directory. BUILD_SUBDIR = @build_subdir@ # This is set by the configure script to the arguments to use when configuring @@ -445,7 +450,7 @@ HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)$(HOST_LIB_PATH_gmp) # Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch @if gcc -HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc: +HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR): @endif gcc