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

Bug fixed on cmake with user modules #870

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

jgarridoalcazar
Copy link
Contributor

User module headers are now searched on a specific module folder (<nest_prefix>/include/<module_name>/). It is intended to solve issue #868.

User module headers are now searched on a specific module folder (<nest_prefix>/include/<module_name>/). It is intended to solve issue nest#868.
@tammoippen
Copy link
Contributor

Good catch. Must have missed that in #844. 👍 from my side.

jgarridoalcazar added a commit to jgarridoalcazar/nest-simulator that referenced this pull request Dec 11, 2017
This changes are intended to fix issue nest#869.

It explicitely defines "-Wl,--no-as-needed" linking flag on nest executable, nest library and pynest library. By default, recent versions of GCC set --as-needed flag. This option allows the linker to ignore, i.e., not link against, some of the libraries supplied on its command line if they are not actually used by the shared library that is being created. This option avoids external modules to be linked in NEST even if they are defined with -Dexternal-modules=....

By setting --no-as-needed GCC will link against all the libraries explicitely indicated (including external modules). It may produce slower executable/library startup if more libraries are added than required.

This PR requires PR nest#870 to be added in order to fix issue nest#868.

This PR has only been tested with GCC 5.4.0 and Ubuntu 16.04. It should be tested on different compilers and OS.
@heplesser heplesser added ZC: Installation DO NOT USE THIS LABEL I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) ZP: PR Created DO NOT USE THIS LABEL S: High Should be handled next T: Bug Wrong statements in the code or documentation labels Dec 21, 2017
Copy link
Member

@Silmathoron Silmathoron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good from me too 👍

@heplesser
Copy link
Contributor

@jgarridoalcazar Thanks for fixing this!

@heplesser heplesser merged commit 03ef9c3 into nest:master Feb 13, 2018
@jgarridoalcazar jgarridoalcazar deleted the fix-ext-module-include-path branch February 13, 2018 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Bug Wrong statements in the code or documentation ZC: Installation DO NOT USE THIS LABEL ZP: PR Created DO NOT USE THIS LABEL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants