ld链接器分组选项的问题

makefile中使用了分组选项--start-group archives --end-group,gcc4.4.7时可以正常编译,换了新系统gcc版本是8.5.0,编译时出了以下错误:
cc:error:unrecognized command line option '--start-group'
如果把gcc版本降到4.4.7,可以正常编译。
为啥高版本不识别,什么地方出的问题。

gcc 4.6 做了一些改变:
“ GCC now has stricter checks for invalid command-line options. In particular, when gcc was called to link object files rather than compile source code, it would previously accept and ignore all options starting with --, including linker options such as --as-needed and --export-dynamic, although such options would result in errors if any source code was compiled. Such options, if unknown to the compiler, are now rejected in all cases; if the intent was to pass them to the linker, options such as -Wl,--as-needed should be used.”

所以
--start-group 改成 -Wl, --start-group

--end-group也一样