Skip to content

Commit dfe3525

Browse files
gbaraldiclaude
andcommitted
Fix Linux compilation: define _GNU_SOURCE for dladdr/Dl_info
On Linux, dlfcn.h only exposes dladdr and Dl_info when _GNU_SOURCE is defined. macOS exposes them unconditionally, which is why local tests passed but CI on ubuntu failed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 950c636 commit dfe3525

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/scripts/juliac-jl-options-shim.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* "juliac-jl-options-body.h".
1515
*/
1616

17+
#ifndef _WIN32
18+
#define _GNU_SOURCE
19+
#endif
20+
1721
#include <julia.h>
1822
#include <stdlib.h>
1923

0 commit comments

Comments
 (0)