如何在我的ARM64(aarch64)编译环境中删除-m64 g ++选项

时间:2018-06-08 04:29:20

标签: g++ arm64

以下是我的env.mk文件片段,我遇到了g ++:错误:无法识别的命令行选项'-m64'因为我不熟悉Makefile环境所以请让你检查一下在makefile下面,如何删除-m64选项......

错误消息:

/usr/bin/make -s makemsg
DIRS is pdl /home/picocluster/altidev4/src/pd/port/unix/     
 CC /home/picocluster/altidev4/target/release/src/pd/pdl/Basic_Types.o
g++: error: unrecognized command line option ‘-m64’
..//../../env.mk:652: recipe for target '/home/picocluster/altidev4/target/release/src/pd/pdl/Basic_Types.o' failed
make[4]: *** [/home/picocluster/altidev4/target/release/src/pd/pdl/Basic_Types.o] Error 1
Makefile:12: recipe for target 'pdl' failed
make[3]: *** [pdl] Error 2

Makefile:

########################
#### common rules
########################
quiet_cmd_ar_a_o = AR $@
      cmd_ar_a_o = $(AR) $(ARFLAGS) $(AROUT)$@ $? > /dev/null

quiet_cmd_so_o = SO $@
      cmd_so_o = $(SOLINK.cc) $(SOFLAGS) $(SOOUT)$@ $^ > /dev/null

define LIB_IT
  $(Q) $(if $(quiet),echo ' $($(quiet)cmd_ar_a_o)')
  $(Q) $(cmd_ar_a_o)
endef

define SHLIB_IT
  $(Q) $(if $(quiet),echo ' $($(quiet)cmd_so_o)')
  $(Q) $(cmd_so_o)
endef

quiet_cmd_cc_o_c = CC $@
      cmd_cc_o_c = mkdir -p $(dir $@); $(COMPILE.cc) $(INCLUDES) $(CC_OUTPUT_FLAG)$@ $<

**define COMPILE_IT
  $(Q) $(if $(quiet),echo ' $($(quiet)cmd_cc_o_c)')
  $(Q) $(cmd_cc_o_c)
endef**

%.$(LIBEXT):
        $(LIB_IT)

%.$(SOEXT):
        $(SHLIB_IT)

**$(TARGET_DIR)/%.o: $(DEV_DIR)/%.cpp
        $(COMPILE_IT)**

0 个答案:

没有答案