Link library for backtrace() on BSD...
[openssl.git] / Configure
index edc9757..9473452 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1761,7 +1761,11 @@ if ($strict_warnings)
                        {
                        $cflags .= " $wopt" unless ($cflags =~ /(^|\s)$wopt(\s|$)/)
                        }
                        {
                        $cflags .= " $wopt" unless ($cflags =~ /(^|\s)$wopt(\s|$)/)
                        }
-               }
+                if ($target =~ /^BSD-/)
+                       {
+                        $lflags .= " -lexecinfo";
+                        }
+                }
        }
 
 open(IN,"<Makefile.org") || die "unable to read Makefile.org:$!\n";
        }
 
 open(IN,"<Makefile.org") || die "unable to read Makefile.org:$!\n";