Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use static linking #9

Merged
merged 1 commit into from
Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ val munitCEVersion = "2.0.0-M3"

ThisBuild / nativeConfig ~= { c =>
c.withCompileOptions(c.compileOptions :+ "-I/home/linuxbrew/.linuxbrew/include")
.withLinkingOptions(c.linkingOptions :+ "-L/home/linuxbrew/.linuxbrew/lib")
.withLinkingOptions(c.linkingOptions :+ "/home/linuxbrew/.linuxbrew/lib/liburing.a")
}
ThisBuild / envVars ++= Map("LD_LIBRARY_PATH" -> "/home/linuxbrew/.linuxbrew/lib")

lazy val root = tlCrossRootProject.aggregate(uring)

Expand Down
1 change: 0 additions & 1 deletion uring/src/main/scala/fs2/io/uring/unsafe/uring.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import scala.scalanative.unsafe._
import scala.scalanative.unsigned._
import scala.scalanative.runtime.Intrinsics._

@link("uring")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically, I don't know how to make the -luring this generates go away if a downstream wants to use static linking. I hope someone can tell me its down to my own ignorance 😅

@extern
private[uring] object uring {
type __u8 = CUnsignedChar
Expand Down