On 8/22/2012 8:52 PM, Bruce Korb wrote:
However I think it might be simpler to tweak mkfixinc.sh to

  sed '/if test -s .{MACRO_LIST}/s/$/ && false/' \
     ${srcdir}/fixinc.in > ${target}

for vxworks rather than all that configury rigmarole.
That would eliminate changes to gcc/configure.ac and gcc/Makefile.in.
OK. One question though: Why not just have a case statement inside fixinc.in? Just running the script through sed seems like a kludgier solution.

e.g.

case ${target_canonical} in
    *-*-vxworks*)
        # Disable the machine name fix as it breaks things
        machine_name_override='OVERRIDE'
        ;;
esac

if test -s ${MACRO_LIST} && test -z "${machine_name_override}"

--
Robert Mason

Reply via email to