mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
plugins/amdgpu: fix cross-compilation
To enable cross-compile we need to use the CC definition from criu/scripts/nmk/scripts/tools.mk: CC := $(CROSS_COMPILE)$(HOSTCC) Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
9a19cf34de
commit
2ee5844411
@ -15,7 +15,6 @@ DEPS_NOK := ;
|
|||||||
__nmk_dir ?= ../../scripts/nmk/scripts/
|
__nmk_dir ?= ../../scripts/nmk/scripts/
|
||||||
include $(__nmk_dir)msg.mk
|
include $(__nmk_dir)msg.mk
|
||||||
|
|
||||||
CC := gcc
|
|
||||||
PLUGIN_CFLAGS := -g -Wall -Werror -D _GNU_SOURCE -shared -nostartfiles -fPIC -DCR_PLUGIN_DEFAULT="$(PLUGINDIR)"
|
PLUGIN_CFLAGS := -g -Wall -Werror -D _GNU_SOURCE -shared -nostartfiles -fPIC -DCR_PLUGIN_DEFAULT="$(PLUGINDIR)"
|
||||||
PLUGIN_LDFLAGS := -lpthread -lrt -ldrm -ldrm_amdgpu
|
PLUGIN_LDFLAGS := -lpthread -lrt -ldrm -ldrm_amdgpu
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user