mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 04:03:36 +08:00
build-sys: support local ./configure arguments
I often want to use the awesome "./autogen.sh [cmd]" arguments, but have to append some custom ./configure options. For now, I always had to edit autogen.sh manually, or copy the full commands out of it and run it myself. As I think this is super annoying, this commit adds support for ".config.args" files in $topdir. If it exists, any content is just appended to $args, thus to any ./configure invokation of autogen.sh. Maybe autotools provide something similar out-of-the-box. In that case, feel free to revert this and lemme know!
This commit is contained in:
parent
d4f5a1f47d
commit
9a20fcbcd1
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@
|
||||
*.swp
|
||||
*.trs
|
||||
*~
|
||||
.config.args
|
||||
.deps/
|
||||
.dirstamp
|
||||
.libs/
|
||||
|
@ -50,6 +50,10 @@ args="\
|
||||
--libdir=$(libdir /usr/lib) \
|
||||
$gtkdocargs"
|
||||
|
||||
if [ -f "$topdir/.config.args" ]; then
|
||||
args="$args $(cat $topdir/.config.args)"
|
||||
fi
|
||||
|
||||
if [ ! -L /bin ]; then
|
||||
args="$args \
|
||||
--with-rootprefix= \
|
||||
|
Loading…
Reference in New Issue
Block a user