Skip to content

Commit

Permalink
Try static linking
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Nov 1, 2024
1 parent 056eca3 commit 4bfd423
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
defaults:
run:
shell: msys2 {0}
env:
PKG_CONFIG_PATH: '/usr/lib/pkgconfig'
steps:
- uses: msys2/setup-msys2@v2
with:
Expand All @@ -27,7 +25,6 @@ jobs:
cd libgit2/build
cmake .. -DCMAKE_INSTALL_PREFIX='C:/ProgramData/libgit2' -DBUILD_CLI=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF
cmake --build . --target install --parallel 4
ls -l 'C:/ProgramData/libgit2/lib/pkgconfig'
- uses: actions/checkout@v4
- run: PKG_CONFIG_PATH='C:/ProgramData/libgit2/lib/pkgconfig' make -j release
working-directory: custom-prompt
Expand Down
1 change: 1 addition & 0 deletions custom-prompt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ MainZshExecutable = bin/$(MainZshObject:.o=)
GetActiveWidObjects = get_active_wid_linux.o get_active_wid_windows.o

ifeq "$(OS)" "Windows_NT"
LDFLAGS += -static
LDLIBS += -lws2_32 -lwinhttp -lcrypt32 -lrpcrt4 -lole32 -lz
else
UNAME = $(shell uname)
Expand Down

0 comments on commit 4bfd423

Please sign in to comment.