Skip to content

Commit 1a206df

Browse files
committed
Fixed glibc compatibility by hardcoding lower version for log2
fixes #1690 - the minimum glibc version was inadvertently bumped in the latest release because `log2` was linked to a higher version - this adds the downgrade to the gcc preinclude file to resolve this - in an upcoming commit, we will add a test to prevent these issues from occurring again
1 parent 776fc55 commit 1a206df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gcc-preinclude.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
1313
__asm__(".symver exp,exp@GLIBC_2.2.5");
1414
__asm__(".symver log,log@GLIBC_2.2.5");
15+
__asm__(".symver log2,log2@GLIBC_2.2.5");
1516
__asm__(".symver pow,pow@GLIBC_2.2.5");
1617
__asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
1718
#endif
@@ -20,6 +21,7 @@ __asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
2021
__asm__(".symver memcpy,memcpy@GLIBC_2.17");
2122
__asm__(".symver exp,exp@GLIBC_2.17");
2223
__asm__(".symver log,log@GLIBC_2.17");
24+
__asm__(".symver log2,log2@GLIBC_2.17");
2325
__asm__(".symver pow,pow@GLIBC_2.17");
2426
__asm__(".symver fcntl64,fcntl@GLIBC_2.17");
2527
#endif

0 commit comments

Comments
 (0)