linux - What causes "/usr/bin/ld: -f may not be used without -shared" and how do I fix it -
i ran across error while trying compile nmr software modelfree4.20 linux. distribution comes makefile, , type "make" in modelfree folder try , compile it, , after writes few files following error:
/usr/bin/ld: -f may not used without -shared collect2: error: ld returned 1 exit status makefile:74: recipe target 'modelfree4' failed make: *** [modelfree4] error 1
i have no idea "-f may not used without -shared" means or trying tell me fix? don't see -f or -shared in makefile when open up, , didn't specify options when ran "make."
any on appreciated!
i think see 2 possibilities.
- if makefile generated configure script, may need run again. may have picked bad makefile due misconfiguration. possibly need run autotools generate configure script again.
- it's possible there system- or session-specific
ldflags
environment variable interfering linking. tryunset ldflags
?
Comments
Post a Comment