mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 23:00:06 -07:00
24 lines
486 B
Bash
Executable File
24 lines
486 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# LTO is used when CFLAGS are unset causing a compilation
|
|
# error with GCC 10. LTO can be set by the user though
|
|
# '-flto-partition=none' is also needed.
|
|
sed -i 's/ -flto//' Make.defaults
|
|
|
|
for patch in *.patch; do
|
|
patch -p1 < "$patch"
|
|
done
|
|
|
|
# Avoid repeating ourselves.
|
|
mk() {
|
|
make \
|
|
libdir=/usr/lib/ \
|
|
bindir=/usr/bin/ \
|
|
mandir=/usr/share/man/ \
|
|
includedir=/usr/include/ \
|
|
"$@"
|
|
}
|
|
|
|
mk CC="${CC:-cc}"
|
|
mk DESTDIR="$1" install
|