# Need help on building git with static libz.a

2 messages from 2023-08-29 to 2023-08-29. Participants: rsbecker@nexbridge.com.
Thread: https://gitlist.dev/t/60166

## rsbecker@nexbridge.com, 2023-08-29 15:21

Subject: Need help on building git with static libz.a
Message-ID: <079601d9da8c$8768cfd0$963a6f70$@nexbridge.com>
URL: https://gitlist.dev/e/079601d9da8c%248768cfd0%24963a6f70%24%40nexbridge.com

```
Hi All,

Sorry if I seem clueless on this within the git make infrastructure, but
someone set up my new build environment with an incompatible libz.so that I
cannot seem to bypass. How can I link git using libz.a instead?

Thanks,
Randall



```

## rsbecker@nexbridge.com, 2023-08-29 17:23

Subject: RE: Need help on building git with static libz.a
Message-ID: <07af01d9da9d$9355e1a0$ba01a4e0$@nexbridge.com>
URL: https://gitlist.dev/e/07af01d9da9d%249355e1a0%24ba01a4e0%24%40nexbridge.com
In-Reply-To: <079601d9da8c$8768cfd0$963a6f70$@nexbridge.com>

```
On Tuesday, August 29, 2023 11:22 AM, I wrote:
>To: git@vger.kernel.org
>Sorry if I seem clueless on this within the git make infrastructure, but
someone set up
>my new build environment with an incompatible libz.so that I cannot seem to
bypass.
>How can I link git using libz.a instead?

Simple solution is to put the full path to libz.a before any -L in LDFLAGS.


```
