Jump to content

Gcc10 - Static Problem


Recommended Posts

Hi when i try add -static to my makefile in gcc10 on freebsd 12.3 i have this errors:

 

/usr/local/bin/ld: /usr/lib/liblzma.a(check.o): in function `lzma_sha256_init':
/usr/src/contrib/xz/src/liblzma/check/check.h:143: undefined reference to `_libm                                                                                                                                                             d_SHA256_Init'
/usr/local/bin/ld: /usr/lib/liblzma.a(check.o): in function `lzma_sha256_update'                                                                                                                                                             :
/usr/src/contrib/xz/src/liblzma/check/check.h:160: undefined reference to `_libm                                                                                                                                                             d_SHA256_Update'
/usr/local/bin/ld: /usr/lib/liblzma.a(check.o): in function `lzma_sha256_finish'                                                                                                                                                             :
/usr/src/contrib/xz/src/liblzma/check/check.h:167: undefined reference to `_libm                                                                                                                                                             d_SHA256_Final'
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:196: ../game_r] Error 1

 

Any idea?

 

My makefile:

https://pastebin.com/Uwsq6Pyk

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.