]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Only link to libmd if it lives in /lib
authorRoy Marples <roy@marples.name>
Mon, 3 Feb 2014 13:24:04 +0000 (13:24 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Feb 2014 13:24:04 +0000 (13:24 +0000)
configure

index e5758cdfdaea628a67c521ee6f8cb4fa9f5edaf8..d974f0a46e4f12c09065b7421395a35670685747 100755 (executable)
--- a/configure
+++ b/configure
@@ -638,9 +638,11 @@ int main(void) {
        return 0;
 }
 EOF
+       # We only want to link to libmd if it exists in /lib
+       set -- $(ls /lib/libmd.so.*)
        if $XCC _md5.c -o _md5 2>/dev/null; then
                MD5=yes
-       elif $XCC _md5.c -lmd -o _md5; then
+       elif [ -e "$1" ] && $XCC _md5.c -lmd -o _md5 2>/dev/null; then
                MD5="yes (-lmd)"
                MD5_LIB=-lmd
        else