repo/extra/gcompat/build

18 lines
414 B
Plaintext
Raw Normal View History

2020-07-17 11:07:29 +00:00
#!/bin/sh -e
2021-07-03 20:42:26 +00:00
sed 's|/lib|/usr/lib|g' Makefile > _
mv -f _ Makefile
2020-07-17 11:07:29 +00:00
2021-07-05 23:31:32 +00:00
# pkgconf is only used to check for obstack support
# which we don't have. The build works fine without
# this line, this just hides the errors.
#
# Also see: https://github.com/pullmoll/musl-obstack/
export PKG_CONFIG=/bin/true
2020-07-17 11:23:12 +00:00
make LINKER_PATH=/usr/lib/ld-musl-x86_64.so.1
2021-07-18 02:14:26 +00:00
make install
2020-07-17 11:07:29 +00:00
2020-07-17 11:13:16 +00:00
ln -s ld-linux.so.2 "$1/usr/lib/ld-linux-x86-64.so.2"