Difference between revisions of "PLIB"

From CBLFS
Jump to navigationJump to search
Line 20: Line 20:
  
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
  ./configure --prefix=/usr &&
+
  CC="gcc -fPIC" CXX="g++ -fPIC" ./configure --prefix=/usr &&
 
  make
 
  make
  
Line 34: Line 34:
  
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
+
  CC="gcc ${BUILD32} -fPIC" CXX="g++ ${BUILD32} -fPIC" \
 
  USE_ARCH=32 ./configure --prefix=/usr &&
 
  USE_ARCH=32 ./configure --prefix=/usr &&
 
  make
 
  make
Line 47: Line 47:
  
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
+
  CC="gcc ${BUILDN32} -fPIC" CXX="g++ ${BUILDN32} -fPIC" \
 
  USE_ARCH=n32 ./configure --prefix=/usr \
 
  USE_ARCH=n32 ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 &&
 
     --libdir=/usr/lib32 &&
Line 61: Line 61:
  
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
 
  patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
+
  CC="gcc ${BUILD64} -fPIC" CXX="g++ ${BUILD64} -fPIC" \
 
  USE_ARCH=64 ./configure --prefix=/usr \
 
  USE_ARCH=64 ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 &&
 
     --libdir=/usr/lib64 &&

Revision as of 07:46, 4 November 2006

Download Source: http://plib.sourceforge.net/dist/plib-1.8.4.tar.gz
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/plib/plib-1.8.4-gcc41_fixes-1.patch

Dependencies

Required

Non-Multilib

Compile the package:

patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
CC="gcc -fPIC" CXX="g++ -fPIC" ./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
CC="gcc ${BUILD32} -fPIC" CXX="g++ ${BUILD32} -fPIC" \
USE_ARCH=32 ./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
CC="gcc ${BUILDN32} -fPIC" CXX="g++ ${BUILDN32} -fPIC" \
USE_ARCH=n32 ./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

patch -Np1 -i ../plib-1.8.4-gcc41_fixes-1.patch &&
CC="gcc ${BUILD64} -fPIC" CXX="g++ ${BUILD64} -fPIC" \
USE_ARCH=64 ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package

make install
Retrieved from "?title=PLIB&oldid=3646"