Results 1 to 1 of 1
I'm confused about the -Wl style linker flags. Consider the following:
Code:
-Vaxlib -lpthread -Wl,-Bstatic,-lunwind -Wl,-Bdynamic -ldl -Wl,-Bstatic,-lcxa -Wl,-Bdynamic -lstdc++ -lm
The linker is efc (I think - it's at ...
- 04-18-2008 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 17
Linker Flags
I'm confused about the -Wl style linker flags. Consider the following:
The linker is efc (I think - it's at least the program at the beginning of the command).Code:-Vaxlib -lpthread -Wl,-Bstatic,-lunwind -Wl,-Bdynamic -ldl -Wl,-Bstatic,-lcxa -Wl,-Bdynamic -lstdc++ -lm
Which ones are static and which ones are dynamic? Does the -Wl come after or before the library? Also, from what I understand, the -Wl options are comma-separated, so why is there a comma before -lunwind and -lcxa?
Not as important, but the -Vaxlib confuses me as well. The ifort manpage says that -V displays the version number, so why is axlib after it?
Sorry for the newb questions, and thank you.


Reply With Quote