criu/scripts
Zhang Ning e7aba32efe tools.mk: support override CC/LD command line
due to Android NDK's clang is x86_64-linux-android28-clang --sysroot ${SYSROOT_PATH}
and it's ld is x86_64-linux-android-ld,
it's not able to use a single pattern to discript clang and ld.

and there is a error for x86_64-linux-android-ld.
x86_64-linux-android-ld  -L/home/ning/source/criu/protobuf-c/../target/lib -lprotobuf-c -r -z noexecstack -T ./compel/arch/x86/scripts/compel-pack.lds.S  -o criu/pie/parasite.built-in.o  criu/pie/parasite.o criu/pie/pie.lib.a ./compel/plugins/std.lib.a
./compel/compel-host hgen -f criu/pie/parasite.built-in.o -o criu/pie/parasite-blob.h
Error (compel/src/lib/handle-elf-host.c:335): Unexpected undefined symbol: `'. External symbol in PIE?
criu/pie/Makefile:49: recipe for target 'criu/pie/parasite-blob.h' failed

rebuild with host ld, can pass build.

so support override CC/LD from command line can pass build.

Cc: Chen Hu <hu1.chen@intel.com>
Signed-off-by: Zhang Ning <ning.a.zhang@intel.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
2019-04-20 20:25:26 -07:00
..
build scripts/build: use the last stable release for s390 2019-04-20 20:25:26 -07:00
nmk tools.mk: support override CC/LD command line 2019-04-20 20:25:26 -07:00
travis docker-test: Fix deprecated security-opt format 2019-04-20 20:25:26 -07:00
crit-setup.py lib Makefiles: integrate 2017-03-06 20:44:07 +03:00
fake-restore.sh zdtm: check an exit code of a straced restore 2018-05-12 11:45:31 +03:00
feature-tests.mak ia32: Get rid of R_X86_64_32S relocation 2017-11-23 20:23:23 +03:00
flake8.cfg lint/python: ignore E117 over-indented 2019-02-16 11:06:01 -08:00
install-debian-pkgs.sh Add script to install required packages to compile in Debian 2016-09-26 15:42:43 +03:00
magic-gen.py python: Remove unused imports 2018-10-30 19:28:01 +03:00
protobuf-gen.sh build/make: return to make from top directory 2016-08-01 18:38:32 +03:00
systemd-autofs-restart.sh scripts/systemd-autofs-restart.sh: fix variable name 2018-07-09 18:26:50 +03:00
tmp-files.sh tmpfiles: implement user tmp files feature 2016-03-09 12:48:33 +03:00