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

Remove "-rdynamic" linking flag for PGI #48

Closed
miroi opened this issue Aug 2, 2015 · 2 comments
Closed

Remove "-rdynamic" linking flag for PGI #48

miroi opened this issue Aug 2, 2015 · 2 comments

Comments

@miroi
Copy link
Contributor

miroi commented Aug 2, 2015

With Portral Group Fortram, pgf90, autocmake is linking with "-rdynamic" option, which is unwanted:

Linking Fortran executable ../bin/example
cd /home/milias/Work/qch/software/software_projects/autocmake_devel/autocmake_miroi/test/fc/build_pgf90/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/example.dir/link.txt --verbose=1
/mnt/apps/pgi/linux86-64/13.10/bin/pgf90       -Mpreprocess -Kieee  -fast -O3 -Mipa=fast CMakeFiles/example.dir/example.f90.o CMakeFiles/example.dir/module.f90.o  -o ../bin/example -rdynamic 
pgf90-Error-Unknown switch: -rdynamic

There is a lot of intenet posts about removing it from cmake, see for example http://www.cmake.org/pipermail/cmake/2009-October/032948.html .

@bast
Copy link
Member

bast commented Aug 2, 2015

If we do it inside Autocmake, we remove this flag for every project on earth that uses Autocmake.
This is perhaps good but I have no experience with PGI. For the moment I recommend to solve it at
the project level. Later we may consider treating this globally. What I will do today is to document
how to do such tweaks using Autocmake. I'll keep this open until then.

@bast bast closed this as completed Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants