--- rpm-4.4.6/configure.ac.no-static 2006-12-08 17:58:30.000000000 +0100 +++ rpm-4.4.6/configure.ac 2006-12-08 17:59:37.000000000 +0100 @@ -119,7 +119,7 @@ with_selinuxval=no AC_MSG_CHECKING(flag used by libtool to link rpm) if test X"$GCC" = Xyes ; then case "$target" in - *-*-linux*) LDFLAGS_STATIC="-all-static" + *-*-linux*) LDFLAGS_STATIC="" with_selinuxval=yes ;; *-*-solaris*) LDFLAGS_STATIC="-static";; *-*-hpux*) LDFLAGS_STATIC="-static";; @@ -129,7 +129,7 @@ if test X"$GCC" = Xyes ; then esac elif test X"$CC" = Xcc ; then case "$target" in - *-*-linux*) LDFLAGS_STATIC="-all-static";; + *-*-linux*) LDFLAGS_STATIC="";; *-*-freebsd*) LDFLAGS_STATIC="-all-static";; *-*-osf*) LDFLAGS_STATIC="";; # OSF5 has no shared pthreads libs *-*-aix*) LDFLAGS_STATIC="-static";; # -Wl,-bnso doesn't seem to work...