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

[[ BUILD ]] Disable PIE when linking executables on Linux#6693

Closed
livecodeian wants to merge 1 commit intolivecode:developfrom
livecodeian:bugfix-build-ubuntu-18.04LTS
Closed

[[ BUILD ]] Disable PIE when linking executables on Linux#6693
livecodeian wants to merge 1 commit intolivecode:developfrom
livecodeian:bugfix-build-ubuntu-18.04LTS

Conversation

@livecodeian
Copy link
Copy Markdown
Contributor

This option is enabled by default when building on Ubuntu 18.04LTS,
which causes problems when linking against libraries built without PIE
support.

This option is enabled by default when building on Ubuntu 18.04LTS,
which causes problems when linking against libraries built without PIE
support.
@montegoulding
Copy link
Copy Markdown
Contributor

@livecodeian you might need to set an environment variable in the config script and then use that in the gyp to govern whether to add the flag. See https://stackoverflow.com/questions/12584936/gcc-ignore-unrecognized-option

@livecodeian
Copy link
Copy Markdown
Contributor Author

livecodeian commented Sep 19, 2018

Yeah, I think you're right @montegoulding - if I just pass that flag to gcc < 6 it'll just error out.

@bwmilby
Copy link
Copy Markdown
Contributor

bwmilby commented Nov 4, 2018

So this is why I couldn’t build (link) on the laptop I configured.

@livecodeali
Copy link
Copy Markdown
Member

Superseded by #6953

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.

4 participants