platojones,
You can use distcc and still use -march=native on the helpers. You must not use -march=native on the netbook. Consider what happens when -march=native is passed to a helper.
Lets just say you won't like the result. The versions of gcc must be identical on all systems too.
Crossdev is best documented in the
Embedded Handbook but you may not need to go this route.
If your more powerful processor can run the netbook code, you can make a netbook install in a directory on the build host. To build, chroot into the dir and run everything normally.
Be sure you set buildpkg in the FEATURES, so binary packages are saved. Run one of the many one liners on the netboot to see what gcc would use for -march=native, then put that into CHOST=
One of my systems has
Code: Select all
CFLAGS="-O2 -pipe -march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=amdfam10"
IF you even need to post that, be sure to explaine where it came from to avoid the suggestion to use -march=native.
You can also set up a crossdev environment and use distcc, which is what I do to build armv6 pacakegs for my Raspberry Pi, on an amd64 system.