Ignore:
Timestamp:
Jul 6, 2009, 3:35:49 PM (15 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
79e1de7
Parents:
fddcf74
Message:

Wrap the pl.hh header installed by ppl in the final system.

Location:
BOOK/final-system/multilib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/multilib/ppl-64bit.xml

    rfddcf74 r57e2e06  
    7070    xpointer="xpointer(//*[@os='i'])"/>
    7171
     72    <para os="j">Create the 64bit header file:</para>
     73
     74<screen os="k"><userinput>mv -v /usr/include/ppl{,-64}.hh</userinput></screen>
     75
     76    <para os="l">Finally, create a stub header in the place of the originals:</para>
     77
     78<screen os="m"><userinput>cat &gt; /usr/include/ppl.hh &lt;&lt; "EOF"
     79/* ppl.hh - Stub Header  */
     80#ifndef __STUB__PPL_HH__
     81#define __STUB__PPL_HH__
     82
     83#if defined(__x86_64__) || \
     84    defined(__sparc64__) || \
     85    defined(__arch64__) || \
     86    defined(__powerpc64__) || \
     87    defined (__s390x__)
     88# include "ppl-64.h"
     89#else
     90# include "ppl-32.h"
     91#endif
     92
     93#endif /* __STUB__PPL_HH__ */
     94EOF</userinput></screen>
     95
    7296  </sect2>
    7397
  • BOOK/final-system/multilib/ppl-n32.xml

    rfddcf74 r57e2e06  
    7171    xpointer="xpointer(//*[@os='i'])"/>
    7272
     73    <para os="j">Create the N32 header file:</para>
     74
     75<screen os="k"><userinput>mv -v /usr/include/ppl{,-n32}.hh</userinput></screen>
     76
    7377  </sect2>
    7478
  • BOOK/final-system/multilib/ppl.xml

    rfddcf74 r57e2e06  
    7171    xpointer="xpointer(//*[@os='i'])"/>
    7272
     73    <para os="j">One of the headers installed by PPL is architecture specific. Programs compiled as 32bit will require the header provided by the 32bit installation of PPL. The same applies for 64bit programs. Move the header so a wrapper can be put in its place later:</para>
     74
     75<screen os="k"><userinput>mv -v /usr/include/ppl{,-32}.hh</userinput></screen>
     76
     77
    7378  </sect2>
    7479
Note: See TracChangeset for help on using the changeset viewer.