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.

  1. if makefile generated configure script, may need run again. may have picked bad makefile due misconfiguration. possibly need run autotools generate configure script again.
  2. it's possible there system- or session-specific ldflags environment variable interfering linking. try unset ldflags?

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -