mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Build gperf before gcc
The ARM image builds build the in-tree gcc in order to build u-boot and gperf is needed to build gcc, but is no longer installed on archs that use clang. Invoking the make targets as separate steps is done to work around a build failure which is not yet fully understood. Reviewed by: gjb, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1317
This commit is contained in:
parent
93201211e9
commit
04fef9c446
1 changed files with 8 additions and 0 deletions
|
|
@ -127,6 +127,14 @@ main() {
|
|||
BATCH=1 FORCE_PKG_REGISTER=1 install clean distclean
|
||||
done
|
||||
|
||||
# Certain u-boot versions hardcode the use of a host gcc, and gcc's
|
||||
# build relies on having gperf installed.
|
||||
eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/gperf \
|
||||
WITH_GCC=1 ${WORLD_FLAGS} obj
|
||||
eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/gperf \
|
||||
WITH_GCC=1 ${WORLD_FLAGS} -j1 depend all
|
||||
eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/gperf \
|
||||
WITH_GCC=1 ${WORLD_FLAGS} -j1 install
|
||||
eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/cc \
|
||||
WITH_GCC=1 ${WORLD_FLAGS} -j1 obj depend all install
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue