1
1
package =native_cctools
2
- $(package)_version =ee31ae567931c426136c94aad457c7b51d844beb
2
+ $(package)_version =807d6fd1be5d2224872e381870c0a75387fe05e6
3
3
$(package)_download_path =https://github.com/theuni/cctools-port/archive
4
4
$(package)_file_name =$($(package ) _version) .tar.gz
5
- $(package)_sha256_hash =ef107e6ab1b3994cb22e14f4f5c59ea0c0b5a988e6b21d42ed9616b018bbcbf9
5
+ $(package)_sha256_hash =a09c9ba4684670a0375e42d9d67e7f12c1f62581a27f28f7c825d6d7032ccc6a
6
6
$(package)_build_subdir =cctools
7
- $(package)_clang_version =3.3
7
+ $(package)_clang_version =3.7.1
8
8
$(package)_clang_download_path =http://llvm.org/releases/$($(package ) _clang_version)
9
- $(package)_clang_download_file =clang+llvm-$($(package ) _clang_version) -amd64-Ubuntu-12 .04.2. tar.gz
10
- $(package)_clang_file_name =clang-llvm-$($(package ) _clang_version) -amd64-Ubuntu-12 .04.2. tar.gz
11
- $(package)_clang_sha256_hash =60d8f69f032d62ef61bf527857ebb933741ec3352d4d328c5516aa520662dab7
9
+ $(package)_clang_download_file =clang+llvm-$($(package ) _clang_version) -x86_64-linux-gnu-ubuntu-14 .04.tar.xz
10
+ $(package)_clang_file_name =clang-llvm-$($(package ) _clang_version) -x86_64-linux-gnu-ubuntu-14 .04.tar.xz
11
+ $(package)_clang_sha256_hash =99b28a6b48e793705228a390471991386daa33a9717cd9ca007fcdde69608fd9
12
12
$(package)_extra_sources =$($(package ) _clang_file_name)
13
13
14
14
define $(package)_fetch_cmds
@@ -23,14 +23,15 @@ define $(package)_extract_cmds
23
23
$(build_SHA256SUM ) -c $($(package ) _extract_dir) /.$($(package ) _file_name) .hash && \
24
24
mkdir -p toolchain/bin toolchain/lib/clang/3.5/include && \
25
25
tar --strip-components=1 -C toolchain -xf $($(package ) _source_dir) /$($(package ) _clang_file_name) && \
26
+ rm -f toolchain/lib/libc++abi.so* && \
26
27
echo "# !/bin/sh" > toolchain/bin/$(host)-dsymutil && \
27
28
echo "exit 0" >> toolchain/bin/$(host)-dsymutil && \
28
29
chmod +x toolchain/bin/$(host)-dsymutil && \
29
30
tar --strip-components=1 -xf $($(package)_source)
30
31
endef
31
32
32
33
define $(package)_set_vars
33
- $(package ) _config_opts=--target=$(host ) --disable-libuuid
34
+ $(package ) _config_opts=--target=$(host ) --disable-lto-support
34
35
$(package ) _ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
35
36
$(package ) _cc=$($(package ) _extract_dir) /toolchain/bin/clang
36
37
$(package ) _cxx=$($(package ) _extract_dir) /toolchain/bin/clang++
@@ -53,10 +54,11 @@ define $(package)_stage_cmds
53
54
cd $($(package ) _extract_dir) /toolchain && \
54
55
mkdir -p $($(package ) _staging_prefix_dir) /lib/clang/$($(package ) _clang_version) /include && \
55
56
mkdir -p $($(package ) _staging_prefix_dir) /bin $($(package ) _staging_prefix_dir) /include && \
56
- cp -P bin/clang bin/clang++ $($(package ) _staging_prefix_dir) /bin/ &&\
57
+ cp bin/clang $($(package ) _staging_prefix_dir) /bin/ &&\
58
+ cp -P bin/clang++ $($(package ) _staging_prefix_dir) /bin/ &&\
57
59
cp lib/libLTO.so $($(package ) _staging_prefix_dir) /lib/ && \
58
60
cp -rf lib/clang/$($(package ) _clang_version) /include/* $($(package ) _staging_prefix_dir) /lib/clang/$($(package ) _clang_version) /include/ && \
59
- cp bin/$( host ) -dsymutil $($(package ) _staging_prefix_dir) /bin && \
61
+ cp bin/llvm -dsymutil $($(package ) _staging_prefix_dir) /bin/ $( host ) -dsymutil && \
60
62
if `test -d include/c++/`; then cp -rf include/c++/ $($(package ) _staging_prefix_dir) /include/; fi && \
61
63
if `test -d lib/c++/`; then cp -rf lib/c++/ $($(package ) _staging_prefix_dir) /lib/; fi
62
64
endef
0 commit comments