build fix: -L dir
This commit is contained in:
@@ -46,7 +46,7 @@ See [github.com/goplus/llgo/c](https://pkg.go.dev/github.com/goplus/llgo/c) for
|
|||||||
|
|
||||||
You can import a Python library in LLGo!
|
You can import a Python library in LLGo!
|
||||||
|
|
||||||
And you can import any Python library into `llgo` through a program called `llpyg` (See [Development tools](#development-tools)). The currently imported libraries include:
|
And you can import any Python library into `llgo` through a program called `llpyg` (see [Development tools](#development-tools)). The currently imported libraries include:
|
||||||
|
|
||||||
* [sys](https://pkg.go.dev/github.com/goplus/llgo/py/sys)
|
* [sys](https://pkg.go.dev/github.com/goplus/llgo/py/sys)
|
||||||
* [os](https://pkg.go.dev/github.com/goplus/llgo/py/os)
|
* [os](https://pkg.go.dev/github.com/goplus/llgo/py/os)
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ func buildAllPkgs(prog llssa.Program, initial []*packages.Package, mode Mode, ve
|
|||||||
dir, lib := filepath.Split(linkFile)
|
dir, lib := filepath.Split(linkFile)
|
||||||
command := " -l " + lib
|
command := " -l " + lib
|
||||||
if dir != "" {
|
if dir != "" {
|
||||||
command += " -L " + dir
|
command += " -L " + dir[:len(dir)-1]
|
||||||
}
|
}
|
||||||
if isSingleLinkFile(pkg.ExportFile) {
|
if isSingleLinkFile(pkg.ExportFile) {
|
||||||
pkg.ExportFile = command + " " + pkg.ExportFile
|
pkg.ExportFile = command + " " + pkg.ExportFile
|
||||||
|
|||||||
Reference in New Issue
Block a user