Changeset 75adfe0 in clfs-embedded


Ignore:
Timestamp:
Jun 13, 2014, 1:58:19 PM (10 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
2864f08
Parents:
f91b6cc
git-author:
Andrew Bradford <andrew@…> (10/25/13 08:14:10)
git-committer:
Andrew Bradford <andrew@…> (06/13/14 13:58:19)
Message:

zlib: Set optimization in CFLAGS

No need to alter configure, it'll respect CFLAGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/beyond-lib/common/zlib.xml

    rf91b6cc r75adfe0  
    2626    <title>Installation of Zlib</title>
    2727
    28     <para os="a">Change the default optimization to Os</para>
     28    <para os="c">Prepare Zlib for compilation and set to optimize for size:</para>
    2929
    30 <screen os="b"><userinput>cp configure{,.orig}
    31 sed -e 's/-O3/-Os/g' configure.orig > configure</userinput></screen>
    32 
    33     <para os="c">Prepare Zlib for compilation:</para>
    34 
    35 <screen os="d"><userinput>./configure --shared</userinput></screen>
     30<screen os="d"><userinput>CFLAGS="-Os" ./configure --shared</userinput></screen>
    3631
    3732    <variablelist os="aa">
Note: See TracChangeset for help on using the changeset viewer.