summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-26 18:20:35 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-26 18:20:35 +0000
commit9aba71dfdcb47ea1529362290c9a13bd27ca0d5f (patch)
treee27db212420c0a12314559b4207c59a39baf64e3
parent58ccf6f97d28b81871dc8a85550970b8a9f451d0 (diff)
configure: fix out-of-source build
Patch by: Niels Ole Salscheider git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184990 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xconfigure.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index ec443ad..3dd9836 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}])