diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-05-09 20:20:21 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-05-09 20:20:21 +0000 |
commit | f878debab03fec3030c959ab05d794eb9023a12f (patch) | |
tree | 8db137e177142f5f8e47c83b21df5c8539f4603d /chapter06/systemd.xml | |
parent | 784b3bb9a32eec1bcb2a901c9a6b3052fdc4f8f7 (diff) |
Fix building systemd with GCC 10
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11843 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/systemd.xml')
-rw-r--r-- | chapter06/systemd.xml | 57 |
1 files changed, 34 insertions, 23 deletions
diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 1010c43ea..c55a26834 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -69,35 +69,46 @@ <screen><userinput remap="configure">mkdir -p build cd build -LANG=en_US.UTF-8 \ -meson --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - -Dblkid=true \ - -Dbuildtype=release \ - -Ddefault-dnssec=no \ - -Dfirstboot=false \ - -Dinstall-tests=false \ - -Dkmod-path=/bin/kmod \ - -Dldconfig=false \ - -Dmount-path=/bin/mount \ - -Drootprefix= \ - -Drootlibdir=/lib \ - -Dsplit-usr=true \ - -Dsulogin-path=/sbin/sulogin \ - -Dsysusers=false \ - -Dumount-path=/bin/umount \ - -Db_lto=false \ - -Drpmmacrosdir=no \ - -Dhomed=false \ - -Duserdb=false \ - -Dman=true \ +LANG=en_US.UTF-8 \ +meson --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + -Dc_args=-Wno-format-overflow \ + -Dblkid=true \ + -Dbuildtype=release \ + -Ddefault-dnssec=no \ + -Dfirstboot=false \ + -Dinstall-tests=false \ + -Dkmod-path=/bin/kmod \ + -Dldconfig=false \ + -Dmount-path=/bin/mount \ + -Drootprefix= \ + -Drootlibdir=/lib \ + -Dsplit-usr=true \ + -Dsulogin-path=/sbin/sulogin \ + -Dsysusers=false \ + -Dumount-path=/bin/umount \ + -Db_lto=false \ + -Drpmmacrosdir=no \ + -Dhomed=false \ + -Duserdb=false \ + -Dman=true \ ..</userinput></screen> <variablelist> <title>The meaning of the meson options:</title> <varlistentry> + <term><parameter>-Dc_args=-Wno-format-overflow</parameter></term> + <listitem> + <para>The defaults flags passed to gcc contain + <parameter>-Werror=format-overflow</parameter>, which generates + an error with GCC 10. Passing this parameter prevents the error + from occuring.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter>-D*-path=*</parameter></term> <listitem> <para>These switches provide location of binaries needed by |