TeslaGov / ngx-http-auth-jwt-module

Secure your NGINX locations with JWT
MIT License
309 stars 118 forks source link

Fix link with jansson #63

Closed orgads closed 1 year ago

orgads commented 2 years ago
jansson/lib/libjansson.a(value.o): In function `json_real':
value.c:(.text+0x3134): undefined reference to `__isnan'
value.c:(.text+0x314c): undefined reference to `__isinf'
jansson/lib/libjansson.a(value.o): In function `json_real_set':
value.c:(.text+0x3294): undefined reference to `__isnan'
value.c:(.text+0x32ac): undefined reference to `__isinf'
collect2: error: ld returned 1 exit status
JoshMcCullough commented 2 years ago

@fitzyjoe can you review this, please?

JoshMcCullough commented 1 year ago

@orgads thanks for the PR! Can you explain what -lm does for us here?

orgads commented 1 year ago

Links with the standard math lib. The functions _isnan and _isinf are used in jansson.

JoshMcCullough commented 1 year ago

This looks good, just needs to be rebased.

orgads commented 1 year ago

Thank you.