Pwlib

From CBLFS
Revision as of 15:32, 19 March 2009 by Jciccone (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Download Source: http://www.ekiga.org/admin/downloads/latest/sources/sources/pwlib-1.10.10.tar.gz

Introduction to Pwlib

Project Homepage: Unknown

Dependencies

Optional

Non-Multilib

Compile the package:

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

Install:

make install &&
chmod -v 755 /usr/lib/libpt_linux*so*

Multilib

32Bit

Compile the package:

sed -i "s:/share/pwlib:/lib/pwlib:g" Makefile.in &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
./configure --prefix=/usr --build=${CLFS_TARGET32} &&
make CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}"

Install the package:

make install &&
chmod -v 755 /usr/lib/libpt_linux*so* &&
mv -v /usr/bin/ptlib-config{,-32} &&
mv -v /usr/include/ptbuildopts{,-32}.h

N32

Compile the package:

sed -i "s:/share/pwlib:/lib32/pwlib:g" Makefile.in &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}"

Install the package:

make install &&
chmod -v 755 /usr/lib32/libpt_linux*so* &&
mv -v /usr/bin/ptlib-config{,-n32} &&
mv -v /usr/include/ptbuildopts{,-n32}.h

64Bit

Compile the package:

sed -i "s:/share/pwlib:/lib64/pwlib:g" Makefile.in &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}"

Install the package:

make install &&
chmod -v 755 /usr/lib64/libpt_linux*so* &&
mv -v /usr/bin/ptlib-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/ptlib-config &&
mv -v /usr/include/ptbuildopts{,-64}.h

Creating a Stub Header (Multilib Only)

Creating a Generic Stub Header

cat > /usr/include/ptbuildopts.h << "EOF"
/* ptbuildopts.h - Stub Header  */
#ifndef __STUB__PTBUILDOPTS_H__
#define __STUB__PTBUILDOPTS_H__

#if defined(__x86_64__) || \
    defined(__sparc64__) || \
    defined(__arch64__) || \
    defined(__powerpc64__) || \
    defined (__s390x__)
# include "ptbuildopts-64.h"
#else
# include "ptbuildopts-32.h"
#endif

#endif /* __STUB__PTBUILDOPTS_H__ */
EOF

Creating a Stub Header For Mips

cat > /usr/include/ptbuildopts.h << "EOF"
/* ptbuildopts.h - Stub Header  */
#ifndef __STUB__PTBUILDOPTS_H__
#define __STUB__PTBUILDOPTS_H__

#include <sgidefs.h>

#if (_MIPS_SIM == _ABIO32)
# include "ptbuildopts-32.h"
#elif (_MIPS_SIM == _ABIN32)
# include "ptbuildopts-n32.h"
#elif (_MIPS_SIM == _ABI64)
# include "ptbuildopts-64.h"
#endif

#endif /* __STUB__PTBUILDOPTS_H__ */
EOF
Retrieved from "?title=Pwlib&oldid=17558"