Ticket #37878: library_path_test.diff
File library_path_test.diff, 1.0 KB (added by michaelld (Michael Dickens), 12 years ago) |
---|
-
config.tests/mac/library_path/library_path.test
old new 8 8 cd $3 9 9 10 10 # (1) make the library 11 if "$COMPILER" -dynamiclib -o library_path_lib.dylib library_path_lib.c 2>/dev/null 1>&2; then11 if "$COMPILER" -dynamiclib -o library_path_lib.dylib library_path_lib.c; then 12 12 # (2) do the test, without LIBRARY_PATH; should fail 13 if "$COMPILER" -nostdlib -nostdinc -I. -o library_path_test library_path_test.c -lrary_path_lib 2>/dev/null 1>&2; then13 if "$COMPILER" -nostdlib -nostdinc -I. -o library_path_test library_path_test.c -lrary_path_lib; then 14 14 true 15 15 else 16 16 # (3) do the test, with LIBRARY_PATH set; should pass 17 17 export LIBRARY_PATH=. 18 if "$COMPILER" -nostdlib -nostdinc -I. -o library_path_test library_path_test.c -lrary_path_lib 2>/dev/null 1>&2; then18 if "$COMPILER" -nostdlib -nostdinc -I. -o library_path_test library_path_test.c -lrary_path_lib; then 19 19 LIBRARY_PATH_SUPPORT=yes 20 20 fi 21 21 fi