mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-02-20 08:26:55 +07:00
21 lines
455 B
Bash
Executable File
21 lines
455 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
autoreconf --install --symlink
|
|
|
|
MYCFLAGS="-g -Wall \
|
|
-Wmissing-declarations -Wmissing-prototypes \
|
|
-Wnested-externs -Wpointer-arith \
|
|
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
|
|
-Wstrict-prototypes -Wshadow \
|
|
-Wformat-security -Wtype-limits"
|
|
|
|
libdir() {
|
|
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
|
|
}
|
|
|
|
args="--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=$(libdir /usr/lib)"
|
|
|
|
./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" $@
|