zig: -rdynamic now implies -fdll-export-fns unless the latter is explicitly set.

Fixes #9340.
This commit is contained in:
Alex Rønne Petersen 2021-07-09 05:15:32 +02:00 committed by Andrew Kelley
parent c56b30f565
commit a38a691487

View File

@ -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,