update for latest radsec
[moonshot.git] / builder
diff --git a/builder b/builder
index 89e328a..2d82fdb 100755 (executable)
--- a/builder
+++ b/builder
@@ -77,7 +77,7 @@ def build(package):
         print configure_command
         sys.stdout.flush()
         run_cmd(configure_command, shell=True)
-        run_cmd(schroot_command + ' make', shell=true)
+        run_cmd(schroot_command + ' make', shell=True)
 
 def make_install(package):
     with current_directory(package):
@@ -127,7 +127,9 @@ root_command = options.root_command
 configure_opts = ['--prefix', prefix,
                   "LDFLAGS='-Wl,-L"+prefix+"/lib"
                   + " -Wl,-R"+prefix+"/lib'",
-                  'CPPFLAGS="-I '+prefix+'/include"']
+                  'CPPFLAGS="-I '+prefix+'/include"',
+                  '--with-system-libtool', '--with-system-libltdl',
+                  ]
 if options.configure_opts is not None: 
     configure_opts.extend(options.configure_opts)
 
@@ -140,6 +142,7 @@ if options.schroot is not None:
 all_packages = read_packages()
 if len(packages) == 0: packages = all_packages
 
+os.umask(022)
 
 try:
     for p in all_packages: