-1

my machine already have cross compiler toolchain in a folder. how do I tell machine to compile using this cross compiler rather than the native compiler?

sepp2k
  • 363,768
  • 54
  • 674
  • 675
user1932637
  • 183
  • 2
  • 12
  • 3
    Possible duplicate of [How to use multiple versions of GCC](https://stackoverflow.com/q/448457/608639) – jww Jan 14 '19 at 18:47
  • Run the cross-compiler rather instead of the native compiler, that's enough. – KamilCuk Jan 14 '19 at 20:49
  • @Kamil Cuk thanks. I was thinking I need set up environment. to my surprise. gcc compiler knows where to find header folder, lib folder and the link command. – user1932637 Jan 14 '19 at 21:08

1 Answers1

1

no need to setup anything. just run the compiler. compiler have internal setup, knows where to find relevant files for build.

user1932637
  • 183
  • 2
  • 12