Changeset 6c183b5


Ignore:
Timestamp:
05/14/2020 08:54:12 AM (16 months ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
547c0eb
Parents:
0a5eff8d
Message:

Add user CFLAGS to CFLAGS=-fcommon

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23132 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • general/genutils/sharutils.xml

    r0a5eff8d r6c183b5  
    8787echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h &amp;&amp;
    8888
    89 CFLAGS=-fcommon ./configure --prefix=/usr &amp;&amp;
     89CFLAGS="$CFLAGS -fcommon" ./configure --prefix=/usr &amp;&amp;
    9090make</userinput></screen>
    9191
  • general/prog/openjdk.xml

    r0a5eff8d r6c183b5  
    243243    </para>
    244244
    245 <screen><userinput>unset JAVA_HOME                             &amp;&amp;
    246 bash configure --enable-unlimited-crypto    \
    247                --with-extra-cflags=-fcommon \
    248                --disable-warnings-as-errors \
    249                --with-stdc++lib=dynamic     \
    250                --with-giflib=system         \
    251                --with-jtreg=$PWD/jtreg      \
    252                --with-lcms=system           \
    253                --with-libjpeg=system        \
    254                --with-libpng=system         \
    255                --with-zlib=system           \
    256                --with-version-build="&openjdk-build;"     \
    257                --with-version-pre=""        \
    258                --with-version-opt=""        \
     245<screen><userinput>unset JAVA_HOME                                       &amp;&amp;
     246bash configure --enable-unlimited-crypto              \
     247               --with-extra-cflags="$CFLAGS -fcommon" \
     248               --disable-warnings-as-errors           \
     249               --with-stdc++lib=dynamic               \
     250               --with-giflib=system                   \
     251               --with-jtreg=$PWD/jtreg                \
     252               --with-lcms=system                     \
     253               --with-libjpeg=system                  \
     254               --with-libpng=system                   \
     255               --with-zlib=system                     \
     256               --with-version-build="&openjdk-build;"               \
     257               --with-version-pre=""                  \
     258               --with-version-opt=""                  \
    259259               --with-cacerts-file=/etc/pki/tls/java/cacerts &amp;&amp;
    260260make images</userinput></screen>
  • networking/netprogs/ntp.xml

    r0a5eff8d r6c183b5  
    136136        Its a "hack" for gcc-10
    137137-->
    138 <screen><userinput>./configure CFLAGS="-O2 -g -fPIC -fcommon" \
     138<screen><userinput>./configure CFLAGS="-O2 -g -fPIC -fcommon $CFLAGS" \
    139139            --prefix=/usr         \
    140140            --bindir=/usr/sbin    \
  • postlfs/filesystems/initramfs.xml

    r0a5eff8d r6c183b5  
    7676  local file
    7777
    78   if [ "$2" == "lib" ]; then
    79     file=$(PATH=/lib:/usr/lib type -p $1)
     78  if [ "$2" = "lib" ]; then
     79    file=$(find /lib /usr/lib -maxdepth 1 -name $1 | head -n 1)
    8080  else
    81     file=$(type -p $1)
     81    file=$(find /bin /usr/bin /sbin /usr/sbin -maxdepth 1 -name $1 | head -n 1)
    8282  fi
    8383
     
    177177if [ -x /sbin/lvm ] ; then sbinfiles="$sbinfiles lvm dmsetup"; fi
    178178
     179# Add mdadm if present
     180if [ -x /sbin/mdadm ] ; then sbinfiles="$sbinfiles mdadm"; fi
     181
     182# Add udevd if present in /sbin (newer versions of udev have it in
     183# /lib/udev)
     184if [ -x /sbin/udevd ] ; then sbinfiles="$sbinfiles udevd"; fi
     185
    179186for f in $sbinfiles ; do
    180187  ldd /sbin/$f | sed "s/\t//" | cut -d " " -f1 &gt;&gt; $unsorted
     
    194201  ln -s kmod $WDIR/bin/insmod
    195202fi
     203
     204ln -s bash $WDIR/bin/sh
    196205
    197206# Add lvm symlinks if appropriate
  • postlfs/filesystems/jfs.xml

    r0a5eff8d r6c183b5  
    104104sed -i "/ioctl.h/a#include &lt;sys/sysmacros.h&gt;" libfs/devices.c   &amp;&amp;
    105105
    106 CFLAGS=-fcommon ./configure &amp;&amp;
     106CFLAGS="$CFLAGS -fcommon" ./configure &amp;&amp;
    107107make</userinput></screen>
    108108
  • postlfs/shells/tcsh.xml

    r0a5eff8d r6c183b5  
    100100    </para>
    101101
    102 <screen><userinput>CFLAGS=-fcommon ./configure --prefix=/usr --bindir=/bin &amp;&amp;
     102<screen><userinput>CFLAGS="$CFLAGS -fcommon" \
     103./configure --prefix=/usr --bindir=/bin &amp;&amp;
    103104
    104105make &amp;&amp;
  • x/lib/freeglut.xml

    r0a5eff8d r6c183b5  
    104104cd    build &amp;&amp;
    105105
     106CFLAGS="$CFLAGS -fcommon"               \
    106107cmake -DCMAKE_INSTALL_PREFIX=/usr       \
    107       -DCMAKE_C_FLAGS=-fcommon          \<!-- devs:See command expl below -->
    108108      -DCMAKE_BUILD_TYPE=Release        \
    109109      -DFREEGLUT_BUILD_DEMOS=OFF        \
     
    131131     when upstream fix is applied. -->
    132132    <para>
    133       <parameter>-DCMAKE_C_FLAGS=-fcommon</parameter>: Fix building with
     133      <parameter>CFLAGS="$CFLAGS -fcommon"</parameter>: Fix building with
    134134      GCC-10 and later.
    135135    </para>
Note: See TracChangeset for help on using the changeset viewer.