--- icecc-create-env.orig 2006-09-11 12:11:50.000000000 -0500 +++ icecc-create-env 2006-09-11 12:10:12.000000000 -0500 @@ -35,8 +35,8 @@ target_files="$target_files $toadd" if test -x "$path"; then # Only call ldd when it makes sense - if file "$path" | grep 'ELF' > /dev/null 2>&1; then - if ! file "$path" | grep 'static' > /dev/null 2>&1; then + if file -L "$path" | grep 'ELF' > /dev/null 2>&1; then + if ! file -L "$path" | grep 'static' > /dev/null 2>&1; then # ldd now outputs ld as /lib/ld-linux.so.xx on current nptl based glibc # this regexp parse the outputs like: # ldd /usr/bin/gcc