clang-svn: Fix installing files.
This commit is contained in:
@@ -51,38 +51,38 @@ prepare() {
|
||||
|
||||
build() {
|
||||
mkdir -p ${srcdir}/llvm/build-${MINGW_CHOST}
|
||||
cd ${srcdir}/llvm/build-${MINGW_CHOST}
|
||||
cd ${srcdir}/llvm/build-${MINGW_CHOST}
|
||||
echo 'ac_cv_have_decl_strerror_s=${ac_cv_have_decl_strerror_s=no}' > config.cache
|
||||
|
||||
# Include location of libffi headers in CPPFLAGS
|
||||
CPPFLAGS+=" $(pkg-config --cflags libffi)"
|
||||
|
||||
../configure \
|
||||
-C \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--build=${MINGW_CHOST} \
|
||||
--host=${MINGW_CHOST} \
|
||||
--with-sysroot=${MINGW_PREFIX} \
|
||||
--enable-targets=x86,x86_64 \
|
||||
--enable-optimized \
|
||||
--disable-assertions \
|
||||
--disable-pthreads \
|
||||
--with-python=/usr/bin/python2 \
|
||||
--enable-libffi \
|
||||
--enable-docs
|
||||
#--enable-shared
|
||||
#--enable-embed-stdcxx
|
||||
#--enable-libcpp
|
||||
#--enable-cxx11
|
||||
#
|
||||
#--enable-ltdl-install
|
||||
#
|
||||
#--with-c-include-dir
|
||||
#--with-gcc-toolchain
|
||||
#--with-default-sysroot
|
||||
#--with-binutils-include
|
||||
#--with-bug-report-url
|
||||
make
|
||||
../configure \
|
||||
-C \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--build=${MINGW_CHOST} \
|
||||
--host=${MINGW_CHOST} \
|
||||
--with-sysroot=${MINGW_PREFIX} \
|
||||
--enable-targets=x86,x86_64 \
|
||||
--enable-optimized \
|
||||
--disable-assertions \
|
||||
--disable-pthreads \
|
||||
--with-python=/usr/bin/python2 \
|
||||
--enable-libffi \
|
||||
--enable-docs
|
||||
#--enable-shared
|
||||
#--enable-embed-stdcxx
|
||||
#--enable-libcpp
|
||||
#--enable-cxx11
|
||||
#
|
||||
#--enable-ltdl-install
|
||||
#
|
||||
#--with-c-include-dir
|
||||
#--with-gcc-toolchain
|
||||
#--with-default-sysroot
|
||||
#--with-binutils-include
|
||||
#--with-bug-report-url
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
@@ -122,7 +122,7 @@ package_llvm(){
|
||||
mv "${srcdir}/llvm/tools/clang" "${srcdir}/clang"
|
||||
mv "${srcdir}/llvm/build-${MINGW_CHOST}/tools/clang" "${srcdir}/clang-${MINGW_CHOST}"
|
||||
cd "${srcdir}/llvm/build-${MINGW_CHOST}"
|
||||
make -j1 DESTDIR="$pkgdir" install
|
||||
make -j1 DESTDIR="$pkgdir" install
|
||||
mv "${srcdir}/clang" "${srcdir}/llvm/tools/clang"
|
||||
mv "${srcdir}/clang-${MINGW_CHOST}" "${srcdir}/llvm/build-${MINGW_CHOST}/tools/clang"
|
||||
rm -r ${pkgdir}${MINGW_PREFIX}/docs
|
||||
@@ -145,13 +145,13 @@ package_clang-analyzer() {
|
||||
|
||||
install -d ${pkgdir}${MINGW_PREFIX}/{bin,lib/clang-analyzer}
|
||||
for _tool in scan-{build,view}; do
|
||||
cp -r tools/$_tool ${pkgdir}${MINGW_PREFIX}lib/clang-analyzer/
|
||||
cp -r tools/$_tool ${pkgdir}${MINGW_PREFIX}/lib/clang-analyzer/
|
||||
ln -s ${pkgdir}${MINGW_PREFIX}/lib/clang-analyzer/$_tool/$_tool ${pkgdir}${MINGW_PREFIX}/bin/
|
||||
done
|
||||
|
||||
# scan-build looks for clang within the same directory
|
||||
install -d ${pkgdir}${MINGW_PREFIX}/lib/clang-analyzer/scan-build/
|
||||
ln -s ${pkgdir}${MINGW_PREFIX}/bin/clang.exe ${pkgdir}${MINGW_PREFIX}/lib/clang-analyzer/scan-build/
|
||||
ln -s ${srcdir}/llvm/build-${MINGW_CHOST}/Release/bin/clang.exe ${pkgdir}${MINGW_PREFIX}/lib/clang-analyzer/scan-build/
|
||||
|
||||
# Relocate man page
|
||||
install -d ${pkgdir}${MINGW_PREFIX}/share/man/man1
|
||||
|
||||
Reference in New Issue
Block a user