Subj : building with zlib from source?
To   : All
From : Oli
Date : Tue Feb 01 2022 10:03 pm

I'm trying to cross-compile a static binkd with zlib support. Which means I have to cross-compile and include zlib from sources too. I just don't know how to do it successfully. I tried:

/tmp/zlib $ ./configure
[...]
/tmp/zlib $ make
[...]
/tmp/zlib $ ls libz.* zlib.h
libz.a  libz.so  libz.so.1  libz.so.1.2.11  zlib.h
/tmp/zlib $

/tmp/binkd $ ./configure --with-zlib=/tmp/zlib
checking for gawk... gawk
checking for gcc... gcc
checking whether the C compiler works... yes
[...]
configure: error: zlib not found in /tmp/zlib
/tmp/binkd $

What am I missing here? Please, help! ;)

(this was not an attempt to cross-compile as I want to solve the ./configure problem first with native gcc)

---
* Origin: Birds aren't real (2:280/464.47)