mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 23:51:28 +03:00
af23b83ea7
The build of extras with larger external dependencies is wrapped in: --enable-extras
20 lines
550 B
Bash
Executable File
20 lines
550 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
gtkdocize
|
|
autoreconf --install --symlink
|
|
|
|
CFLAGS="-g -Wall \
|
|
-Wmissing-declarations -Wmissing-prototypes \
|
|
-Wnested-externs -Wpointer-arith \
|
|
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
|
|
-Wstrict-prototypes -Wshadow \
|
|
-Wformat=2 -Wtype-limits"
|
|
|
|
libdirname=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
|
|
args="--prefix=/usr --exec-prefix= --sysconfdir=/etc \
|
|
--libdir=/usr/$libdirname --with-libdir-name=$libdirname \
|
|
--with-selinux --enable-gtk-doc --enable-extras"
|
|
|
|
export CFLAGS="$CFLAGS -O2"
|
|
./configure $args $@
|