Nicolai Stange
unread,Mar 18, 2012, 7:49:07 AM3/18/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
you can use `gcc -v' when linking. This will print the command lines of
all commands involved in compilation/linking to stderr.
Since in the end, linking is just handed over to ld, you'll have to collect
the information together by hand (by looking at the -L and -l flags
gcc passes to collect2 which in turn invokes ld).
If your gcc is configured to use GNU ld (which may not be the case), you
can pass it the `-t' flag (see `man ld'):
gcc -Wl,-t ...
Best,
Nicolai