How to determine host value for configure when using cross compiler

前端 未结 3 1764
轻奢々
轻奢々 2020-12-01 11:27

General question: If I use a cross compiler, how can I tell the value of the \"--host\" option I should give when I run configure?

Specific: I\'m using cross compile

3条回答
  •  悲哀的现实
    2020-12-01 11:46

    --host is the "triplet" for the machine on which your resultant build will ultimately run. In your case "arm64" is the architecture, but it is only one piece of the triplet. In any event it maps to the string "aarch64" in the triplet. One possible value is

    --host=aarch64-linux-android

    this page from gnu.org gives the definitive answer about --host/--target/--build usage

提交回复
热议问题