Changeset 27178ae
- Timestamp:
- Feb 21, 2006, 2:06:53 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- bcbd90b
- Parents:
- f013de9
- Location:
- BOOK
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/zlib.xml
rf013de9 r27178ae 34 34 <title>Installation of Zlib</title> 35 35 36 <note os="a"> 37 <para>Zlib is known to build its shared library incorrectly if 38 <envar>CFLAGS</envar> is specified in the environment. If using a 39 specified <envar>CFLAGS</envar> variable, be sure to add the 40 <option>-fPIC</option> directive to the <envar>CFLAGS</envar> 41 variable for the duration of the configure command below, then 42 remove it afterwards.</para> 43 </note> 36 <para os="p1">This patch will add -fPIC to our build and allow us to build 37 a static and shared library at the same time:</para> 44 38 45 <para os="b">Prepare Zlib for compilation:</para>39 <screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen> 46 40 47 <screen os="c"><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>41 <para os="a">Prepare Zlib for compilation:</para> 48 42 49 <para os="d">Compile the package:</para>43 <screen os="b"><userinput>./configure --prefix=/usr --shared</userinput></screen> 50 44 51 <screen os="e"><userinput>make</userinput></screen>45 <para os="c">Compile the package:</para> 52 46 53 <para os="f">To test the results, issue: 47 <screen os="d"><userinput>make</userinput></screen> 48 49 <para os="e">To test the results, issue: 54 50 <userinput>make check</userinput>.</para> 55 51 56 <para os=" g">Install the shared library:</para>52 <para os="f">Installation:</para> 57 53 58 <screen os=" h"><userinput>make install</userinput></screen>54 <screen os="g"><userinput>make install</userinput></screen> 59 55 60 <para os=" i">The previous command installed a <filename56 <para os="h">The previous command installed a <filename 61 57 class="extension">.so</filename> file in <filename 62 class="directory">/lib</filename>. We will remove it and relink it into 63 <filename class="directory">/usr/lib</filename>:</para> 58 class="directory">/usr/lib</filename>. We will remove itinto 59 <filename class="directory">/lib</filename> and then relink it 60 to <filename class="directory">/usr/lib</filename>:</para> 64 61 65 <screen os=" j"><userinput>rm /lib/libz.so66 ln -sf ../../lib/libz.so. &zlib-version;/usr/lib/libz.so</userinput></screen>62 <screen os="i"><userinput>mv /usr/lib/libz.so.* 63 ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen> 67 64 68 <para os=" k">Buildthe static library:</para>65 <para os="j">Now we fix the permissions on the static library:</para> 69 66 70 <screen os="l"><userinput>make clean 71 ./configure --prefix=/usr 72 make</userinput></screen> 73 74 <para os="m">To test the results again, issue: 75 <userinput>make check</userinput>.</para> 76 77 <para os="n">Install the static library:</para> 78 79 <screen os="o"><userinput>make install</userinput></screen> 80 81 <para os="p">Fix the permissions on the static library:</para> 82 83 <screen os="q"><userinput>chmod 644 /usr/lib/libz.a</userinput></screen> 67 <screen os="k"><userinput>chmod 644 /usr/lib/libz.a</userinput></screen> 84 68 85 69 </sect2> -
BOOK/final-system/multilib/zlib-64bit.xml
rf013de9 r27178ae 24 24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 25 25 href="zlib.xml" 26 xpointer="xpointer(//*[@os=' a'])"/>26 xpointer="xpointer(//*[@os='p1'])"/> 27 27 28 28 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 29 29 href="zlib.xml" 30 xpointer="xpointer(//*[@os='b'])"/> 30 xpointer="xpointer(//*[@os='p2'])"/> 31 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 33 href="zlib.xml" 34 xpointer="xpointer(//*[@os='a'])"/> 31 35 32 36 <screen os="c"><userinput>CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \ 33 --shared --libdir=/ lib64</userinput></screen>37 --shared --libdir=/usr/lib64</userinput></screen> 34 38 35 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 49 53 xpointer="xpointer(//*[@os='g'])"/> 50 54 51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 52 href="zlib.xml" 53 xpointer="xpointer(//*[@os='h'])"/> 55 <para os="h">The previous command installed a <filename 56 class="extension">.so</filename> file in <filename 57 class="directory">/usr/lib64</filename>. We will remove itinto 58 <filename class="directory">/lib64</filename> and then relink it 59 to <filename class="directory">/usr/lib64</filename>:</para> 54 60 55 <para os="i">The previous command installed a <filename 56 class="extension">.so</filename> file in <filename 57 class="directory">/lib64</filename>. We will remove it and relink it into 58 <filename class="directory">/usr/lib64</filename>:</para> 59 60 <screen os="j"><userinput>rm /lib64/libz.so 61 ln -sf ../../lib64/libz.so.&zlib-version; /usr/lib64/libz.so</userinput></screen> 61 <screen os="i"><userinput>mv /usr/lib64/libz.so.* 62 ln -sf ../../lib64/libz.so.1 /usr/lib64/libz.so</userinput></screen> 62 63 63 64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 64 65 href="zlib.xml" 65 xpointer="xpointer(//*[@os=' k'])"/>66 xpointer="xpointer(//*[@os='j'])"/> 66 67 67 <screen os="l"><userinput>make clean 68 CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure \ 69 --prefix=/usr --libdir=/usr/lib64 70 make</userinput></screen> 71 72 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 73 href="zlib.xml" 74 xpointer="xpointer(//*[@os='m'])"/> 75 76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 77 href="zlib.xml" 78 xpointer="xpointer(//*[@os='n'])"/> 79 80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 81 href="zlib.xml" 82 xpointer="xpointer(//*[@os='o'])"/> 83 84 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 85 href="zlib.xml" 86 xpointer="xpointer(//*[@os='p'])"/> 87 88 <screen os="q"><userinput>chmod 644 /usr/lib64/libz.a</userinput></screen> 68 <screen os="k"><userinput>chmod 644 /usr/lib64/libz.a</userinput></screen> 89 69 90 70 </sect2> -
BOOK/final-system/multilib/zlib-n32.xml
rf013de9 r27178ae 25 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 26 26 href="zlib.xml" 27 xpointer="xpointer(//*[@os=' a'])"/>27 xpointer="xpointer(//*[@os='p1'])"/> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 30 href="zlib.xml" 31 xpointer="xpointer(//*[@os=' b'])"/>31 xpointer="xpointer(//*[@os='p2'])"/> 32 32 33 <screen os="c"><userinput>CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ 34 --shared --libdir=/lib32</userinput></screen> 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 34 href="zlib.xml" 35 xpointer="xpointer(//*[@os='a'])"/> 36 37 <screen os="b"><userinput>CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ 38 --shared --libdir=/usr/lib32</userinput></screen> 39 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 41 href="zlib.xml" 42 xpointer="xpointer(//*[@os='c'])"/> 35 43 36 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 50 58 xpointer="xpointer(//*[@os='g'])"/> 51 59 52 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 53 href="zlib.xml" 54 xpointer="xpointer(//*[@os='h'])"/> 60 <para os="h">The previous command installed a <filename 61 class="extension">.so</filename> file in <filename 62 class="directory">/usr/lib32</filename>. We will remove itinto 63 <filename class="directory">/lib32</filename> and then relink it 64 to <filename class="directory">/usr/lib32</filename>:</para> 55 65 56 <para os="i">The previous command installed a <filename 57 class="extension">.so</filename> file in <filename 58 class="directory">/lib32</filename>. We will remove it and relink it into 59 <filename class="directory">/usr/lib32</filename>:</para> 60 61 <screen os="j"><userinput>rm /lib32/libz.so 62 ln -sf ../../lib32/libz.so.&zlib-version; /usr/lib32/libz.so</userinput></screen> 66 <screen os="i"><userinput>mv /usr/lib32/libz.so.* 67 ln -sf ../../lib32/libz.so.1 /usr/lib32/libz.so</userinput></screen> 63 68 64 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 65 70 href="zlib.xml" 66 xpointer="xpointer(//*[@os=' k'])"/>71 xpointer="xpointer(//*[@os='j'])"/> 67 72 68 <screen os="l"><userinput>make clean 69 CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure \ 70 --prefix=/usr --libdir=/usr/lib32 71 make</userinput></screen> 72 73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 74 href="zlib.xml" 75 xpointer="xpointer(//*[@os='m'])"/> 76 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 78 href="zlib.xml" 79 xpointer="xpointer(//*[@os='n'])"/> 80 81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 82 href="zlib.xml" 83 xpointer="xpointer(//*[@os='o'])"/> 84 85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 86 href="zlib.xml" 87 xpointer="xpointer(//*[@os='p'])"/> 88 89 <screen os="q"><userinput>chmod 644 /usr/lib32/libz.a</userinput></screen> 73 <screen os="k"><userinput>chmod 644 /usr/lib32/libz.a</userinput></screen> 90 74 91 75 </sect2> -
BOOK/final-system/multilib/zlib.xml
rf013de9 r27178ae 25 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 26 26 href="../common/zlib.xml" 27 xpointer="xpointer(//*[@os=' a'])"/>27 xpointer="xpointer(//*[@os='p1'])"/> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 30 href="../common/zlib.xml" 31 xpointer="xpointer(//*[@os=' b'])"/>31 xpointer="xpointer(//*[@os='p2'])"/> 32 32 33 <screen os="c"><userinput>CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr \ 34 --shared --libdir=/lib</userinput></screen> 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 34 href="../common/zlib.xml" 35 xpointer="xpointer(//*[@os='a'])"/> 36 37 <screen os="b"><userinput>CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr \ 38 --shared</userinput></screen> 39 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 41 href="../common/zlib.xml" 42 xpointer="xpointer(//*[@os='c'])"/> 35 43 36 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 66 74 xpointer="xpointer(//*[@os='k'])"/> 67 75 68 <screen os="l"><userinput>make clean69 CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr70 make</userinput></screen>71 72 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"73 href="../common/zlib.xml"74 xpointer="xpointer(//*[@os='m'])"/>75 76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"77 href="../common/zlib.xml"78 xpointer="xpointer(//*[@os='n'])"/>79 80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"81 href="../common/zlib.xml"82 xpointer="xpointer(//*[@os='o'])"/>83 84 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"85 href="../common/zlib.xml"86 xpointer="xpointer(//*[@os='p'])"/>87 88 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"89 href="../common/zlib.xml"90 xpointer="xpointer(//*[@os='q'])"/>91 92 76 </sect2> 93 77 -
BOOK/general.ent
rf013de9 r27178ae 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 3 <!ENTITY version "CLFS-SVN-2006011 0">3 <!ENTITY version "CLFS-SVN-20060111"> 4 4 <!ENTITY version-x86 "&version;-x86"> 5 5 <!ENTITY version-x86_64 "&version;-x86_64-Multilib"> … … 15 15 <!ENTITY version-alpha "&version;-ALPHA"> 16 16 17 <!ENTITY releasedate "January 1 0, 2006">17 <!ENTITY releasedate "January 11, 2006"> 18 18 <!ENTITY milestone "0.1"> 19 19 <!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" --> -
BOOK/introduction/common/changelog.xml
rf013de9 r27178ae 38 38 39 39 <listitem> 40 <para>January 11, 2006</para> 41 <itemizedlist> 42 <listitem> 43 <para>[jim] - Rewrote wrote zlib final instructions to include 44 a patch the will allow build of static and shared libraries at 45 the same time. Thanx for the recommendation Tushar Teredesai.</para> 46 </listitem> 47 </itemizedlist> 48 </listitem> 49 50 <listitem> 40 51 <para>January 8, 2006</para> 41 52 <itemizedlist> 42 53 <listitem> 43 54 <para>[Chris] - Rewrote much of the description of the build 44 process and test suite information.</para> 45 </listitem> 46 </itemizedlist> 47 </listitem> 48 55 process and test suite information.</para> 56 </listitem> 57 </itemizedlist> 58 </listitem> 49 59 50 60 <listitem> -
BOOK/materials/common/patches.xml
rf013de9 r27178ae 224 224 </varlistentry> 225 225 226 <varlistentry os="p28"> 227 <term>Zlib fPIC Patch - 3.2 KB:</term> <listitem> 228 <para><ulink 229 url="&patches-root;zlib/&zlib-fpic-patch;"/></para> 230 </listitem> 231 </varlistentry> 232 226 233 </variablelist> 227 234 -
BOOK/patches.ent
rf013de9 r27178ae 60 60 61 61 <!ENTITY vim-security_fix-patch "vim-&vim-version;-security_fix-2.patch"> 62 63 <!ENTITY zlib-fpic-patch "zlib-&zlib-version;-fPIC-1.patch"> 62 64 63 65 <!-- Start of multilib patches -->
Note:
See TracChangeset
for help on using the changeset viewer.