2019-06-25 23:42:26 -06:00
|
|
|
#!/bin/sh -e
|
2019-10-08 02:18:28 -06:00
|
|
|
|
2020-09-20 23:54:37 -06: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 07:37:08 -06:00
|
|
|
sed 's/ -flto//' src/include/defaults.mk > _
|
|
|
|
mv -f _ src/include/defaults.mk
|
2019-06-25 23:42:26 -06:00
|
|
|
|
2019-10-08 02:18:28 -06:00
|
|
|
# Avoid repeating ourselves.
|
|
|
|
mk() {
|
|
|
|
make \
|
2021-07-13 01:36:17 -06:00
|
|
|
-j1 \
|
2019-10-08 02:18:28 -06:00
|
|
|
libdir=/usr/lib/ \
|
|
|
|
bindir=/usr/bin/ \
|
|
|
|
mandir=/usr/share/man/ \
|
|
|
|
includedir=/usr/include/ \
|
|
|
|
"$@"
|
|
|
|
}
|
2019-06-25 23:42:26 -06:00
|
|
|
|
2021-07-17 20:33:04 -06:00
|
|
|
mk COMPILER="$CC"
|
2021-07-17 12:33:27 -06:00
|
|
|
mk install
|