Ignore:
Timestamp:
05/09/2020 08:20:21 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
477c0985
Parents:
784b3bb
Message:

Fix building systemd with GCC 10

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11843 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/systemd.xml

    r784b3bb rf878deb  
    7070cd       build
    7171
    72 LANG=en_US.UTF-8                   \
    73 meson --prefix=/usr                \
    74       --sysconfdir=/etc            \
    75       --localstatedir=/var         \
    76       -Dblkid=true                 \
    77       -Dbuildtype=release          \
    78       -Ddefault-dnssec=no          \
    79       -Dfirstboot=false            \
    80       -Dinstall-tests=false        \
    81       -Dkmod-path=/bin/kmod        \
    82       -Dldconfig=false             \
    83       -Dmount-path=/bin/mount      \
    84       -Drootprefix=                \
    85       -Drootlibdir=/lib            \
    86       -Dsplit-usr=true             \
    87       -Dsulogin-path=/sbin/sulogin \
    88       -Dsysusers=false             \
    89       -Dumount-path=/bin/umount    \
    90       -Db_lto=false                \
    91       -Drpmmacrosdir=no            \
    92       -Dhomed=false                \
    93       -Duserdb=false               \
    94       -Dman=true                   \
     72LANG=en_US.UTF-8                    \
     73meson --prefix=/usr                 \
     74      --sysconfdir=/etc             \
     75      --localstatedir=/var          \
     76      -Dc_args=-Wno-format-overflow \
     77      -Dblkid=true                  \
     78      -Dbuildtype=release           \
     79      -Ddefault-dnssec=no           \
     80      -Dfirstboot=false             \
     81      -Dinstall-tests=false         \
     82      -Dkmod-path=/bin/kmod         \
     83      -Dldconfig=false              \
     84      -Dmount-path=/bin/mount       \
     85      -Drootprefix=                 \
     86      -Drootlibdir=/lib             \
     87      -Dsplit-usr=true              \
     88      -Dsulogin-path=/sbin/sulogin  \
     89      -Dsysusers=false              \
     90      -Dumount-path=/bin/umount     \
     91      -Db_lto=false                 \
     92      -Drpmmacrosdir=no             \
     93      -Dhomed=false                 \
     94      -Duserdb=false                \
     95      -Dman=true                    \
    9596      ..</userinput></screen>
    9697
    9798    <variablelist>
    9899      <title>The meaning of the meson options:</title>
     100
     101      <varlistentry>
     102        <term><parameter>-Dc_args=-Wno-format-overflow</parameter></term>
     103        <listitem>
     104          <para>The defaults flags passed to gcc contain
     105          <parameter>-Werror=format-overflow</parameter>, which generates
     106          an error with GCC 10. Passing this parameter prevents the error
     107          from occuring.</para>
     108        </listitem>
     109      </varlistentry>
    99110
    100111      <varlistentry>
Note: See TracChangeset for help on using the changeset viewer.