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 7b9612a922
commit a45c0c5033

View file

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