-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump(main/suitesparse): 7.8.3, revbump(main/sundials), fix({main,x11}…
…/octave{,-x}): symbols related to #21130
- Loading branch information
Showing
6 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <complex.h> | ||
#include <math.h> | ||
|
||
// https://git.musl-libc.org/cgit/musl/tree/src/complex/clogf.c | ||
|
||
// Fix for | ||
|
||
// ld.lld: error: undefined reference due to --no-allow-shlib-undefined: clogf | ||
// >>> referenced by liboctave/.libs/liboctave.so | ||
// clang++: error: linker command failed with exit code 1 (use -v to see invocation) | ||
|
||
// This symbol appeared in API 29 so we should define it as weak to avoid interference with system version | ||
|
||
float complex __attribute__((weak)) clogf(float complex z) { | ||
float r, phi; | ||
|
||
r = cabsf(z); | ||
phi = cargf(z); | ||
return CMPLXF(logf(r), phi); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <complex.h> | ||
#include <math.h> | ||
|
||
// https://git.musl-libc.org/cgit/musl/tree/src/complex/clogf.c | ||
|
||
// Fix for | ||
|
||
// ld.lld: error: undefined reference due to --no-allow-shlib-undefined: clogf | ||
// >>> referenced by liboctave/.libs/liboctave.so | ||
// clang++: error: linker command failed with exit code 1 (use -v to see invocation) | ||
|
||
// This symbol appeared in API 29 so we should define it as weak to avoid interference with system version | ||
|
||
float complex __attribute__((weak)) clogf(float complex z) { | ||
float r, phi; | ||
|
||
r = cabsf(z); | ||
phi = cargf(z); | ||
return CMPLXF(logf(r), phi); | ||
}; |