tools/elfutils: split upstreamable parts of portability patch
authorMichael Pratt <mcpratt@pm.me>
Sat, 18 May 2024 03:21:42 +0000 (23:21 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 19 Jun 2024 09:22:13 +0000 (11:22 +0200)
commit52a53445014d87cf4cdc5484a8293a41b6f5b274
treeecb82e389de841d3d47f6c55b834f847d0948628
parent9670a38d08c1d842f16ef7811080808f2c147898
tools/elfutils: split upstreamable parts of portability patch

The addition of LT_INIT as well as the adjustment of
the BUILD_STATIC and addition of the BUILD_SHARED conditionals
and their usage to block building of shared objects
and adjust the variables for building static libraries
is potentially upstream-friendly.

The use of a manifest file to keep a list
of the objects in each library instead of calling ar
is also potentially upstream-friendly.

Separate these changes from the macOS-specific hacks.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/15690
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/elfutils/patches/100-portability.patch
tools/elfutils/patches/101-shared-conditional.patch [new file with mode: 0644]
tools/elfutils/patches/110-objects-manifest.patch [new file with mode: 0644]