[Libclc-dev] [PATCH 2/2] configure: fix out-of-source build

Niels Ole Salscheider niels_ole at salscheider-online.de
Mon Feb 25 07:23:06 PST 2013


---
 configure.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.py b/configure.py
index 840d430..d7eddcc 100755
--- a/configure.py
+++ b/configure.py
@@ -178,9 +178,10 @@ install_cmd = ' && '.join(['mkdir -p $(DESTDIR)/%(dst)s && cp -r %(src)s $(DESTD
                            {'src': file,
                             'dst': libexecdir}
                            for (file, dest) in install_files_bc])
-install_cmd = ' && '.join(['%(old)s && mkdir -p $(DESTDIR)/%(dst)s && cp -r generic/include/clc $(DESTDIR)/%(dst)s' %
+install_cmd = ' && '.join(['%(old)s && mkdir -p $(DESTDIR)/%(dst)s && cp -r %(srcdir)s/generic/include/clc $(DESTDIR)/%(dst)s' %
                            {'old': install_cmd,
-                            'dst': includedir}])
+                            'dst': includedir,
+                            'srcdir': srcdir}])
 install_cmd = ' && '.join(['%(old)s && mkdir -p $(DESTDIR)/%(dst)s && cp -r libclc.pc $(DESTDIR)/%(dst)s' %
                            {'old': install_cmd, 
                             'dst': pkgconfigdir}])
-- 
1.8.1.3





More information about the Libclc-dev mailing list