Difference between revisions of "GNU Pth"

From CBLFS
Jump to navigationJump to search
(New page: {| style="text-align: left; background-color: AliceBlue;" |-valign="top" !Download Source: | ftp://ftp.gnu.org/gnu/pth/pth-{{GNU-Pth-Version}}.tar.gz |} ---- == Introduction to GNU Pth =...)
 
 
(8 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
----
 
----
  
== Introduction to GNU Pth ==
+
{{Package-Introduction|The Pth package contains a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (multithreading) inside event-driven applications. All threads run in the same address space of the server application, but each thread has its own individual program-counter, run-time stack, signal mask and errno variable.|http://www.gnu.org/software/pth/}}
 
 
Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (aka ``multithreading'') inside event-driven applications.
 
 
 
'''Project Home Page''': http://www.gnu.org/software/pth/
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 17: Line 13:
 
=== Optional ===
 
=== Optional ===
 
* [[Dmalloc]]
 
* [[Dmalloc]]
 +
 +
== Configuration Information ==
 +
 +
{{Note|Don't add the --enable-pthread parameter to the configure command below else you will overwrite the pthread library and interface header installed by the Glibc package in CLFS. Also worth noting is that this package dosen't build with -j* attached to make.}}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 27: Line 27:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
 +
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7
  
 
== Multilib ==
 
== Multilib ==
Line 35: Line 37:
 
Compile the package:
 
Compile the package:
  
  To do...
+
  CC="gcc ${BUILD32}" \
 +
./configure --prefix=/usr &&
 +
make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/pth-config{,-32} &&
 +
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
 +
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7
  
 
=== N32 ===
 
=== N32 ===
Line 45: Line 52:
 
Compile the package:
 
Compile the package:
  
  To do...
+
  CC="gcc ${BUILDN32}" \
 +
./configure --prefix=/usr \
 +
    --libdir=/usr/lib32 &&
 +
make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/pth-config{,-n32} &&
 +
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
 +
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 55: Line 68:
 
Compile the package:
 
Compile the package:
  
  To do...
+
  CC="gcc ${BUILD64}" \
 +
./configure --prefix=/usr \
 +
    --libdir=/usr/lib64 &&
 +
make
  
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
mv -v /usr/bin/pth-config{,-64} &&
 +
ln -sfv multiarch_wrapper /usr/bin/pth-config &&
 +
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
 +
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7
  
 
= Contents =
 
= Contents =
Line 72: Line 92:
 
|-valign="top"
 
|-valign="top"
 
! Installed Directory:
 
! Installed Directory:
| None
+
| /usr/share/doc/pth-2.0.7
 
|}
 
|}
 +
 +
[[Category:General Utilities]]

Latest revision as of 15:29, 22 February 2010

Download Source: ftp://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz

Introduction to GNU Pth

The Pth package contains a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (multithreading) inside event-driven applications. All threads run in the same address space of the server application, but each thread has its own individual program-counter, run-time stack, signal mask and errno variable.

Project Homepage: http://www.gnu.org/software/pth/

Dependencies

Optional

Configuration Information

Caution.png

Note

Don't add the --enable-pthread parameter to the configure command below else you will overwrite the pthread library and interface header installed by the Glibc package in CLFS. Also worth noting is that this package dosen't build with -j* attached to make.

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install &&
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" \
./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/pth-config{,-32} &&
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7

N32

Compile the package:

CC="gcc ${BUILDN32}" \
./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/pth-config{,-n32} &&
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7

64Bit

Compile the package:

CC="gcc ${BUILD64}" \
./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/pth-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/pth-config &&
install -v -m755 -d /usr/share/doc/pth-2.0.7 &&
install -v -m644 README PORTING SUPPORT TESTS /usr/share/doc/pth-2.0.7

Contents

Installed Programs: pth-config
Installed Libraries: libpth.{a,la,so}
Installed Directory: /usr/share/doc/pth-2.0.7