include /usr/lib/freeradius in LDFLAGS
authorSam Hartman <hartmans@painless-security.com>
Tue, 8 Mar 2011 01:37:36 +0000 (20:37 -0500)
committerSam Hartman <hartmans@painless-security.com>
Tue, 8 Mar 2011 01:37:36 +0000 (20:37 -0500)
Debian installs freeradius development libs in /usr/lib/freeradius.
Try looking there somewhat hackishly.

builder

diff --git a/builder b/builder
index 2d82fdb..d0414d9 100755 (executable)
--- a/builder
+++ b/builder
@@ -125,7 +125,7 @@ opt.usage = "%prog [options] [packages]"
 prefix = options.prefix
 root_command = options.root_command
 configure_opts = ['--prefix', prefix,
-                  "LDFLAGS='-Wl,-L"+prefix+"/lib"
+                  "LDFLAGS='-Wl,-L"+prefix+"/lib -Wl,-L/usr/lib/freeradius"
                   + " -Wl,-R"+prefix+"/lib'",
                   'CPPFLAGS="-I '+prefix+'/include"',
                   '--with-system-libtool', '--with-system-libltdl',