summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>2013-02-25 16:23:06 +0100
committerTom Stellard <thomas.stellard@amd.com>2013-03-08 16:49:57 +0000
commit4264a1229e464c4fc7928d96d95fabed0ad33a43 (patch)
tree3754947a45f6711dcae9c4d6552836b1cce40d0c
parentd6dfea77064a89dc38f68dbe76f8460526ac4d5c (diff)
configure: fix out-of-source build
-rwxr-xr-xconfigure.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index d861c24..2421f06 100755
--- a/configure.py
+++ b/configure.py
@@ -177,9 +177,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}])