This topic has been archived. It cannot be replied.
-
枫下家园 / 电脑电信 / 问问Linux的高手, 我用了这个 export CC=/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-, 然后${CC}gcc没问题,但是 make CROSS_COMPILE=${CC} 报错,说找不到gcc, 为啥?多谢
-haihai(享受阳光🌞);
2023-7-31
(#15581845@0)
-
why not " export CC=/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc " ?
-abcdefghi(9alphabetic);
2023-7-31
(#15581865@0)
-
因为已经建立好的Makefile里用了 {CROSS_COMPILE}gcc,还有 {CROSS_COMPILE}ar, {CROSS_COMPILE}ld啥的
-haihai(享受阳光🌞);
2023-7-31
(#15581922@0)
-
那你在Makefile 定义CROSS_COMPILE=${CC},然后直接make可以吗?
-abcdefghi(9alphabetic);
2023-7-31
(#15581981@0)
-
试试写个 bash 脚本,里面给 CC 赋值,后面进行引用,执行对应 gcc/make 什么的,应该可以
-x2y(xfer);
2023-7-31
(#15581967@0)