gcc47: Restore cross-build capability
authorJohn Marino <netbsd@marino.st>
Thu, 4 Oct 2012 16:03:52 +0000 (18:03 +0200)
committerSascha Wildner <saw@online.de>
Thu, 4 Oct 2012 16:57:10 +0000 (18:57 +0200)
commit58700ca72fc998e00907566b6d012e53056da342
treefda487fd3d79dd558a006197eca5e5053f32f560
parentfbf509da0e684432f50a80896e54a4d005b49f97
gcc47: Restore cross-build capability

The internal specs of gcc47 featured an hardcoded standard include
directory which prevented cross-target builds.  The same mistake also
caused the "crosstools" compiler in a native build to look at the host
system includes instead of the world_{TARGET}/usr/includes directory.
As a result, the cross-build would break as soon as GCC47 was used to
build its own libraries.

A stage-specific prefix was added to the internal specs directory
definition that restored cross-target building capability.
gnu/usr.bin/cc47/cc_prep/config/dragonfly-native.h