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  
    88cd $3
    99
    1010# (1) make the library
    11 if "$COMPILER" -dynamiclib -o library_path_lib.dylib library_path_lib.c 2>/dev/null 1>&2; then
     11if "$COMPILER" -dynamiclib -o library_path_lib.dylib library_path_lib.c; then
    1212    # (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; then
     13    if "$COMPILER" -nostdlib -nostdinc -I. -o library_path_test library_path_test.c -lrary_path_lib; then
    1414        true
    1515    else
    1616        # (3) do the test, with LIBRARY_PATH set; should pass
    1717        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; then
     18        if "$COMPILER" -nostdlib -nostdinc -I. -o library_path_test library_path_test.c -lrary_path_lib; then
    1919            LIBRARY_PATH_SUPPORT=yes
    2020        fi
    2121    fi