| 1 | package=native_cctools |
| 2 | $(package)_version=04663295d0425abfac90a42440a7ec02d7155fea |
| 3 | $(package)_download_path=https://github.com/tpoechtrager/cctools-port/archive |
| 4 | $(package)_download_file=$($(package)_version).tar.gz |
| 5 | $(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 6 | $(package)_sha256_hash=70a7189418c2086d20c299c5d59250cf5940782c778892ccc899c66516ed240e |
| 7 | $(package)_build_subdir=cctools |
| 8 | $(package)_dependencies=native_clang native_libtapi |
| 9 | |
| 10 | define $(package)_set_vars |
| 11 | $(package)_config_opts=--target=$(host) --disable-lto-support --with-libtapi=$(host_prefix) |
| 12 | $(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib |
| 13 | $(package)_cc=$(host_prefix)/native/bin/clang |
| 14 | $(package)_cxx=$(host_prefix)/native/bin/clang++ |
| 15 | endef |
| 16 | |
| 17 | define $(package)_config_cmds |
| 18 | $($(package)_autoconf) |
| 19 | endef |
| 20 | |
| 21 | define $(package)_build_cmds |
| 22 | $(MAKE) |
| 23 | endef |
| 24 | |
| 25 | define $(package)_stage_cmds |
| 26 | $(MAKE) DESTDIR=$($(package)_staging_dir) install && \ |
| 27 | cp $($(package)_extract_dir)/cctools/misc/install_name_tool $($(package)_staging_prefix_dir)/bin/ |
| 28 | endef |