ld: unknown option: -Bstatic

267 views
Skip to first unread message

alexandre...@gmail.com

unread,
Oct 28, 2011, 5:10:46 AM10/28/11
to gnumap-users
Hi,

When i do make to install Gnumap, i have this error :

ld: unknown option: -Bstatic
collect2: ld returned 1 exit status
make: *** [bin/gnumap] Error 1

I have got a solution please ?

Thanks

Nathan Clement

unread,
Oct 29, 2011, 8:14:48 PM10/29/11
to gnumap...@googlegroups.com
This is an issue with static and/or dynamic linking in c++.

If you edit the Makefile, on about line 78 or 79 there should be a line that is commented out that says:
#LIB =  -Llib/lib -lgsl -lgslcblas -dynamic -lpthread
If you uncomment this line (remove the beginning '#' sign) and comment the previous line (the one that has -Bstatic on it), this should compile.

Nathan
Reply all
Reply to author
Forward
0 new messages