Open saagraa opened 7 months ago
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-exe
system-lib
my-lib/build.ss:
my-lib/build.ss
(defbuild-script `((gxc: "my-lib" "-ld-options" ,(pkg-config-libs "system-lib"))))
./my-exe/build.ss:
./my-exe/build.ss
(defbuild-script `((exe: "my-exe")))
./my-exe/gerbil.pkg
(package: me depend: [my-lib])
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.
With the following structure,
my-exe
will not link tosystem-lib
. The link options have to get copied into the exe build script for linking to occur.my-lib/build.ss
:./my-exe/build.ss
:./my-exe/gerbil.pkg