zig: -rdynamic now implies -fdll-export-fns unless the latter is explicitly set.
Fixes #9340.
This commit is contained in:
committed by
Andrew Kelley
parent
c56b30f565
commit
a38a691487
@@ -991,7 +991,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
|
||||
break :blk lm;
|
||||
} else default_link_mode;
|
||||
|
||||
const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib;
|
||||
const dll_export_fns = if (options.dll_export_fns) |explicit| explicit else is_dyn_lib or options.rdynamic;
|
||||
|
||||
const libc_dirs = try detectLibCIncludeDirs(
|
||||
arena,
|
||||
|
||||
Reference in New Issue
Block a user