Projeto-Pindorama / heirloom-ng

A collection of standard Unix utilities that is intended to provide maximum compatibility with traditional Unix while incorporating additional features necessary today.
http://heirloom-ng.pindorama.net.br
Other
28 stars 7 forks source link

Fix building on dynamic-only library distributions (ex. Arch Linux) (+1 other fix) #51

Closed mamccollum closed 4 months ago

mamccollum commented 5 months ago

Main fix:

I noticed while building on Arch Linux that the build failed to find -lbz2 for the bzip2 library for cpio. Ends up, the reason the GNU libc options worked on Debian but not Arch is because the -Wl,-Bstatic was still included, meaning the makefile was still attempting to use static libraries, which Arch does not ship. This fixes that. Note that this shouldn't affect Copacabana Linux or other distributions that use static libraries, as I only changed the lines that already were using dynamics.

Second fix:

readlink's makefile was not removing readlink_ucb*. I added it in to fix that.

takusuman commented 5 months ago

O.k., I will be merging these soon. I'm currently working at the tests, so I'm a little busy now.

mamccollum commented 5 months ago

Understood, take your time.

O.k., I will be merging these soon. I'm currently working at the tests, so I'm a little busy now.