Skip to content

Commit 59ef993

Browse files
committed
be super explicit
1 parent e7fbfae commit 59ef993

File tree

1 file changed

+6
-2
lines changed
  • aws-crt-kotlin/native/interop

1 file changed

+6
-2
lines changed

aws-crt-kotlin/native/interop/crt.def

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ linkerOpts.ios = -framework Security -framework Network
3636
linkerOpts.mingw = -lcrypt32 -lsecur32 -lncrypt -lshlwapi
3737

3838
# included libs are linked automatically, adding linkerOpts like `-laws-c-common` causes
39-
# issues downstream as it will search for that library still.
40-
staticLibraries = libaws-crt-kotlin.a
39+
# issues downstream as it will search for that library still. Unfortunately, the name of the file to link is different
40+
# between OSes and the `staticLibraries` key requires a strict filename (e.g., libaws-crt-kotlin.a), not a raw library
41+
# name (e.g., aws-crt-kotlin) so we have to declare the statics for each target family independently.
42+
staticLibraries.linux = libaws-crt-kotlin.a
43+
staticLibraries.osx = libaws-crt-kotlin.a
44+
staticLibraries.ios = libaws-crt-kotlin.a
4145
staticLibraries.mingw = aws-crt-kotlin.lib
4246

4347
---

0 commit comments

Comments
 (0)