Hi,
I needed to build root on FreeBSD machines. To build it in that environment (configured simply with ‘freebsd7’), I had to modify two files, namely, build/unix/compiledata.sh and core/editline/src/readline.cxx: diffs to the files are attached.
build/unix/compiledata.sh:
On FreeBSD, bash is usually in /usr/local/bin, whereas in almost all Linux environment it is found in /bin, and therefore I’ve changed the shebang from ‘#!/bin/bash’ to ‘#!/usr/bin/env bash’.
core/editline/src/readline.cxx:
There’s no alloca.h on FreeBSD; instead, alloca(3) only needs stdlib.h.
Therefore, ‘#include <alloca.h>’ was surrounded by ‘#ifndef FreeBSD … #endif’ clause.
Kazuyoshi
diffs-for-freebsd7st-v5.25.02.tar.gz (466 Bytes)