Hello. I have gradle multimodule project. I have t...
# kotlin-native
c
Hello. I have gradle multimodule project. I have the project
:ssl
, and he needs
-lssl
for linking. This project builds normally with linkOpts
-lssl
Also, I have
:httpServer
project. Then I add
:ssl
as a dependency to
:httpServer
and after I try to build it. On linking I catching errors they say that argument
-lssl
is not added tp linkOpts. What I must do to fix this error. For example, I can add
-lssl
to
:httpServer
but I don't want to do this, because I already added this arg to
:ssl
. I don't want to add
-lssl
to each project who using
:ssl
and
:httpServer
d
Did you add that in the def file or via gradle?
You'll have to do it via the def file if you want your dependencies to not have to add it.
c
I added -lssl into gradle. Now I try to move this to def file and build my
:httpServer
. As result
httpServer
can't find
*.a
files because this
*.a
not a part of embedded mingw. When I build
:ssl
I added custom path to
*.a
files
d
Did you add the custom path via gradle? Or the def file.
You could always just bundle the
*.a
files and forget about linking altogether.
c
This custom path in project directory. I can't define relative path in def file.
You could always just bundle the
*.a
files and forget about linking altogether.
how?
Although you'll have the same relative path issue.
You can specify a path relative to your project directory. That's what the def file uses by default (....ish).