Difference between revisions of "GNU Pth"

From CBLFS
Jump to navigationJump to search
m
Line 7: Line 7:
 
----
 
----
  
{{Package-Introduction|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.|http://www.gnu.org/software/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/}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 13: Line 13:
 
=== Optional ===
 
=== Optional ===
 
* [[Dmalloc]]
 
* [[Dmalloc]]
 +
 +
== Configure ==
 +
 +
{{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 LFS.}}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 23: 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 38: Line 44:
  
 
  make install &&
 
  make install &&
  mv -v /usr/bin/pth-config{,-32}
+
  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 52: Line 60:
  
 
  make install &&
 
  make install &&
  mv -v /usr/bin/pth-config{,-n32}
+
  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 67: Line 77:
 
  make install &&
 
  make install &&
 
  mv -v /usr/bin/pth-config{,-64} &&
 
  mv -v /usr/bin/pth-config{,-64} &&
  ln -sfv multiarch_wrapper /usr/bin/pth-config
+
  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 =

Revision as of 02:22, 23 May 2008

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

Configure

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 LFS.

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: None
Retrieved from "?title=GNU_Pth&oldid=14235"