Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Necessary support for Gcc 4.6+ #24

Open
schapman30 opened this issue Jun 18, 2018 · 0 comments
Open

Necessary support for Gcc 4.6+ #24

schapman30 opened this issue Jun 18, 2018 · 0 comments
Labels

Comments

@schapman30
Copy link

schapman30 commented Jun 18, 2018

My build that has worked on older versions of RHEL running with older versions of GCC is now failing and producing the error "gcc: error: unrecognized command line option '--whole-archive'" because gcc 4.8 is treating the "--whole-archive" flag as a compiler option. It is now necessary to include "-Wl" before linker options. This is not currently supported with this plugin; it should be updated to prepend "-Wl" to linker flags.

From 4.6 release notes: "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." https://gcc.gnu.org/gcc-4.6/changes.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants