This is notably needed for GNU/Hurd's libmachuser.so and libhurduser.so.
$(objpfx)tst-iconv_prog.out: tst-iconv_prog.sh $(objpfx)iconv_prog
$(BASH) $< $(common-objdir) '$(test-wrapper-env)' \
- '$(run-program-env)' > $@; \
+ '$(run-program-env)' '$(rpath-link)' > $@; \
$(evaluate-test)
$(objpfx)tst-translit-mchar.out: tst-translit-mchar.sh \
$(objpfx)tst-iconvconfig.out: tst-iconvconfig.sh $(objpfx)iconvconfig
$(BASH) $< $(common-objdir) '$(test-wrapper-env)' \
- '$(run-program-env)' > $@; \
+ '$(run-program-env)' '$(rpath-link)' > $@; \
$(evaluate-test)
codir=$1
test_wrapper_env="$2"
run_program_env="$3"
+# Remove the last space to allow concatenate extra paths.
+library_path="$(echo $4)"
# We have to have some directories in the library path.
LIBPATH=$codir:$codir/iconvdata
# How the start the iconv(1) program. $from is not defined/expanded yet.
ICONV='
-$codir/elf/ld.so --library-path $LIBPATH --inhibit-rpath ${from}.so
+$codir/elf/ld.so --library-path $library_path:$LIBPATH --inhibit-rpath ${from}.so
$codir/iconv/iconv_prog
'
ICONV="$test_wrapper_env $run_program_env $ICONV"
build_dir=$1
test_wrapper_env="$2"
run_program_env="$3"
+# Remove the last space to allow concatenate extra paths.
+library_path="$(echo $4)"
# We have to have some directories in the library path.
LIBPATH=$build_dir:$build_dir/iconvdata
ICONVCONFIG="
-$build_dir/elf/ld.so --library-path $LIBPATH $build_dir/iconv/iconvconfig
+$build_dir/elf/ld.so --library-path $library_path:$LIBPATH $build_dir/iconv/iconvconfig
"
ICONVCONFIG="$test_wrapper_env $run_program_env $ICONVCONFIG"
$(common-objdir)/iconv/iconv_prog TESTS
iconv_modules="$(modules)" \
$(SHELL) $< $(common-objdir) '$(test-wrapper-env)' \
- '$(run-program-env)' > $@; \
+ '$(run-program-env)' '$(rpath-link)' > $@; \
$(evaluate-test)
$(objpfx)tst-tables.out: tst-tables.sh \
codir=$1
test_wrapper_env="$2"
run_program_env="$3"
+# Remove the last space to allow concatenate extra paths.
+library_path="$(echo $4)"
# We use always the same temporary file.
temp1=$codir/iconvdata/iconv-test.xxx
LIBPATH=$codir:$codir/iconvdata
# How the start the iconv(1) program.
-ICONV='$codir/elf/ld.so --library-path $LIBPATH --inhibit-rpath ${from}.so \
+ICONV='$codir/elf/ld.so --library-path $library_path:$LIBPATH --inhibit-rpath ${from}.so \
$codir/iconv/iconv_prog'
ICONV="$test_wrapper_env $run_program_env $ICONV"
include $(patsubst %,$(..)libof-iterator.mk,$(cpp-srcs-left))
$(objpfx)tst-locale-locpath.out : tst-locale-locpath.sh $(objpfx)locale
- $(SHELL) $< '$(common-objpfx)' '$(test-wrapper-env)' '$(run-program-env)' > $@; \
+ $(SHELL) $< '$(common-objpfx)' '$(test-wrapper-env)' \
+ '$(run-program-env)' '$(rpath-link)' > $@; \
$(evaluate-test)
$(objpfx)tst-localedef-path-norm: $(shared-thread-library)
common_objpfx=$1
test_wrapper_env=$2
run_program_env=$3
+# Remove the last space to allow concatenate extra paths.
+library_path="$(echo $4)"
LIBPATH="$common_objpfx"
${test_wrapper_env} \
${run_program_env} LANG= LC_ALL=invalid-locale LOCPATH=does-not-exist \
-${common_objpfx}elf/ld.so --library-path "$LIBPATH" \
+${common_objpfx}elf/ld.so --library-path "$library_path:$LIBPATH" \
"${common_objpfx}locale/locale" \
> "$testroot/stdout" 2> "$testroot/stderr"