2019-06-26 05:42:26 +00:00
|
|
|
#!/bin/sh -e
|
2019-10-08 08:18:28 +00:00
|
|
|
|
2020-09-21 05:54:37 +00:00
|
|
|
# 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.
|
2021-07-05 13:37:08 +00:00
|
|
|
sed 's/ -flto//' src/include/defaults.mk > _
|
|
|
|
mv -f _ src/include/defaults.mk
|
2019-06-26 05:42:26 +00:00
|
|
|
|
2019-10-08 08:18:28 +00:00
|
|
|
# Avoid repeating ourselves.
|
|
|
|
mk() {
|
|
|
|
make \
|
|
|
|
libdir=/usr/lib/ \
|
|
|
|
bindir=/usr/bin/ \
|
|
|
|
mandir=/usr/share/man/ \
|
|
|
|
includedir=/usr/include/ \
|
|
|
|
"$@"
|
|
|
|
}
|
2019-06-26 05:42:26 +00:00
|
|
|
|
2020-02-12 06:58:54 +00:00
|
|
|
mk CC="${CC:-cc}"
|
2019-10-08 08:18:28 +00:00
|
|
|
mk DESTDIR="$1" install
|