我想在Makefile中找到,无论我是在32位还是64位机器上运行.
是否可以从Makefile中简单地访问任何宏或环境变量?
我在网上找到了这个相关的答案:
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
# do 64 bit stuff here, like set some CFLAGS
else
# do 32 bit stuff here
endif
Run Code Online (Sandbox Code Playgroud)
但是,我怀疑所有系统getconf工具是否可用.
每当我尝试将文件从ESXi计算机复制到其他Linux计算机时,它总是失败。它等待更长的时间,或者最终导致超时错误。
使用的Cmd:scp local_file root @:IP:path / to / folder
cmd err:ssh:连接到主机端口22:连接超时失去连接
Linux机器正在运行sshd服务。
但是,可以从Linux复制到ESXi。
我在哪里缺少配置?提前致谢 !!