try out linux fix (#4977)

* try out linux fix

* do what the makefile wants

* Buildmosde pie

* Update package.yml

* Update package.yml

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Max Howell 2024-01-24 21:57:01 -05:00 committed by GitHub
parent 5e35d79d0a
commit 45b0360399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,10 +2,6 @@ distributable:
url: git+https://github.com/mudler/LocalAI
ref: ${{version.tag}}
# weird c++ stdlib linkage error on linux
platforms:
- darwin
display-name: LocalAI
versions:
@ -20,6 +16,13 @@ build:
gnu.org/wget: ^1
gnu.org/coreutils: ^9
git-scm.org: ^2
env:
linux:
# one of these will do it. probably.
CGO_LDFLAGS:
- -lstdc++fs
LD_FLAGS:
- -buildmode=pie
script:
- make build
- install -D local-ai {{prefix}}/bin/local-ai
@ -27,5 +30,4 @@ build:
provides:
- bin/local-ai
test:
local-ai --version | grep {{version}}
test: local-ai --version | grep {{version}}