Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

added -fPIC and -fno-pie options to allow compiling on modern linux d…#6897

Closed
mwieder wants to merge 1 commit intolivecode:developfrom
mwieder:fix_makefile
Closed

added -fPIC and -fno-pie options to allow compiling on modern linux d…#6897
mwieder wants to merge 1 commit intolivecode:developfrom
mwieder:fix_makefile

Conversation

@mwieder
Copy link
Copy Markdown
Contributor

@mwieder mwieder commented Mar 7, 2019

Changes to two files to allow compiling on modern linux systems. Gcc since version 6.2 (my system now defaults to version 7.3.0) now defaults to the "-enable-default-pie" option for position independence, which prevents compilation. The patch to config.py forces "-fno-pie" as a compiler option instead and "-no-pie" as a linker option. The cef library compilation still fails unless the second patch to linux-settings.gpyi to force the "-fPIC" option is also installed.

@livecodeian
Copy link
Copy Markdown
Contributor

livecodeian commented Mar 12, 2019

Hi @mwieder, I have a similar PR here - #6693 however it can't be merged right now as the -fno-pie option is not recognised by the version of GCC used to build our releases.

One thing that we may be able to do to be more backwards-compatible is to make sure our prebuilt libraries are compiled with PIC enabled so they can be linked with versions of GCC with PIE enabled by default.

Ian.

@mwieder
Copy link
Copy Markdown
Contributor Author

mwieder commented Mar 12, 2019

Ian- thanks. Yes, your patch does the trick nicely and changes only one file instead of two. I'm going to close this PR in favor of #6693. Is there a reason the team is still building with outdated software?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants