[libclc] r184990 - configure: fix out-of-source build

Tom Stellard thomas.stellard at amd.com
Wed Jun 26 11:20:36 PDT 2013


Author: tstellar
Date: Wed Jun 26 13:20:35 2013
New Revision: 184990

URL: http://llvm.org/viewvc/llvm-project?rev=184990&view=rev
Log:
configure: fix out-of-source build

Patch by: Niels Ole Salscheider

Modified:
    libclc/trunk/configure.py

Modified: libclc/trunk/configure.py
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/configure.py?rev=184990&r1=184989&r2=184990&view=diff
==============================================================================
--- libclc/trunk/configure.py (original)
+++ libclc/trunk/configure.py Wed Jun 26 13:20:35 2013
@@ -178,9 +178,10 @@ install_cmd = ' && '.join(['mkdir -p $(D
                            {'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}])





More information about the cfe-commits mailing list