diff --git a/contrib/crossrpms/rtems/Makefile.am b/contrib/crossrpms/rtems/Makefile.am index 9369453298..35b1396066 100644 --- a/contrib/crossrpms/rtems/Makefile.am +++ b/contrib/crossrpms/rtems/Makefile.am @@ -62,7 +62,7 @@ $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am gcc-sources.add -e "/^%package -n @rpmprefix@@tool_target@-gcc/d" \ -e "s/-n @rpmprefix@@tool_target@-gcc//" \ -e "/--with-sysroot/d" \ - -e "/BuildRequires:.*@tool_target@-sys-root/d" \ + -e "/@tool_target@-sys-root/d" \ -e 's,^%define build_newlib.*$$,%define build_newlib 1,' \ > $(TARGET)-gcc.spec.in CLEANFILES += $(TARGET)-gcc.spec.in