Try to fix non-5 centos builds.
authorCarl Hetherington <cth@carlh.net>
Tue, 24 May 2016 15:58:27 +0000 (16:58 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 24 May 2016 15:58:27 +0000 (16:58 +0100)
cscript

diff --git a/cscript b/cscript
index 69ba00418098d52807da238864d475b19f70f914..7a3f3b3bbfe05f0b64769560cd5640d49f5cf6d2 100644 (file)
--- a/cscript
+++ b/cscript
@@ -207,7 +207,7 @@ def make_spec(filename, version, target):
     if target.distro == 'centos' and target.version == '5':
         prefix = 'BUILDROOT/usr'
     else:
-        prefix = '%%{buildroot}/usr'
+        prefix = '%{buildroot}/usr'
 
     print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%s --install-prefix=/usr %s' %
           (target.directory, target.directory, prefix, configure_options(target)), file=f)