We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355ee98 commit e4e2c68Copy full SHA for e4e2c68
sqlite3_native_assets/lib/src/build.dart
@@ -68,11 +68,16 @@ final class SqliteBuild {
68
}
69
70
Future<void> _compile(String source) async {
71
+ // Force-link libm on Android so C math symbols (e.g., trunc, log) resolve
72
+ // at load time.
73
+ final isAndroid = input.config.code.targetOS == OS.android;
74
+
75
final builder = CBuilder.library(
76
name: 'sqlite3',
77
assetName: 'sqlite3_native_assets.dart',
78
sources: [source],
79
defines: defines,
80
+ libraries: [if (isAndroid) 'm'],
81
);
82
83
if (trackSourcesAsDependencyForCompilation) {
0 commit comments