Changeset 9c8dbc39


Ignore:
Timestamp:
08/12/2024 11:07:14 AM (5 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, lazarus, trunk, xry111/for-12.3
Children:
c48815ad
Parents:
53cd9807
Message:

zip: Simplify the instruction

"generic_gcc" is just a shorthand of "CC=gcc generic", so it's simpler
to just call "generic" directly when we want to override CC. Thus we no
longer need to use a sed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/zip.xml

    r53cd9807 r9c8dbc39  
    7575
    7676    <para>
    77       First, make the package compatible with gcc-14:
    78     </para>
    79 
    80 <screen><userinput>sed -i '205 s/CC=gcc/CC="gcc -std=gnu89"/' unix/Makefile</userinput></screen>
    81 
    82     <para>
    8377      Install <application>Zip</application> by running the following
    8478      commands:
    8579    </para>
    8680
    87 <screen><userinput>make -f unix/Makefile generic_gcc</userinput></screen>
     81<screen><userinput>make -f unix/Makefile generic CC="gcc -std=gnu89"</userinput></screen>
    8882
    8983    <para>
     
    10397
    10498    <para>
    105       <command>make prefix=/usr -f unix/Makefile install</command>: This
    106       command overrides the <varname>prefix</varname> variable that is set to
     99      <parameter>CC="gcc -std=gnu89"</parameter>: This parameter
     100      overrides the <varname>CC</varname> variable that is set to
     101      <command>cc</command> in the <filename>unix/Makefile</filename> file.
     102      On LFS <command>cc</command> is a symlink to <command>gcc</command>,
     103      and it uses <option>-std=gnu17</option> (ISO 9899:2017 with GNU
     104      extensions) as the default but Zip is a <quote>legacy</quote> package
     105      where some grammar constructs are invalid in ISO 9899:1999 and newer
     106      standards.
     107    </para>
     108
     109    <para>
     110      <parameter>prefix=/usr</parameter>: This parameter
     111      overrides the <varname>prefix</varname> variable that is set to
    107112      <filename class='directory'>/usr/local</filename> in the
    108       <filename>unix/Makefile</filename>.
    109       Alternatives to <parameter>generic_gcc</parameter> can be seen with a
    110       <command>make -f unix/Makefile list</command> command.
     113      <filename>unix/Makefile</filename> file.
    111114    </para>
    112115
Note: See TracChangeset for help on using the changeset viewer.