-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
  • 353,842
  • 52
  • 662
  • 667
user1932637
  • 143
  • 2
  • 11
  • 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
  • 143
  • 2
  • 11