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

Link options dont propagate from dependencies to consumers #1198

Open
saagraa opened this issue Apr 2, 2024 · 1 comment
Open

Link options dont propagate from dependencies to consumers #1198

saagraa opened this issue Apr 2, 2024 · 1 comment

Comments

@saagraa
Copy link
Contributor

saagraa commented Apr 2, 2024

With the following structure, my-exe will not link to system-lib. The link options have to get copied into the exe build script for linking to occur.

my-lib/build.ss:

(defbuild-script
 `((gxc: "my-lib" "-ld-options" ,(pkg-config-libs "system-lib"))))

./my-exe/build.ss:

(defbuild-script
  `((exe: "my-exe")))

./my-exe/gerbil.pkg

(package: me depend: [my-lib])
@vyzo
Copy link
Collaborator

vyzo commented Apr 2, 2024

This is a known issue, that we want to fix.

The simplest solution would be to generate a link info file from make, which the compiler can ingest in dependency analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants