Difference between revisions of "Libcap"

From CBLFS
Jump to navigationJump to search
m
Line 29: Line 29:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD32} -fPIC" LD="ld ${LD_BUILD32}"
+
  make CC="gcc ${BUILD32} -fPIC" LD="gcc -shared ${BUILD32} -fPIC"
  
 
Install the package
 
Install the package
  
  make install &&
+
  make lib=lib install &&
 
  chmod -v 755 /lib/libcap.so.{{libcap-Version}}
 
  chmod -v 755 /lib/libcap.so.{{libcap-Version}}
 +
 
=== N32 ===
 
=== N32 ===
  
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILDN32} -fPIC" LD="ld ${LD_BUILDN32}"
+
  make CC="gcc ${BUILDN32} -fPIC" LD="gcc -shared ${BUILDN32} -fPIC"
  
 
Install the package
 
Install the package
  
  make LIBDIR=/lib32 install &&
+
  make lib=lib32 LIBDIR=/lib32 install &&
 
  chmod -v 755 /lib32/libcap.so.{{libcap-Version}}
 
  chmod -v 755 /lib32/libcap.so.{{libcap-Version}}
 
=== 64Bit ===
 
=== 64Bit ===
Line 49: Line 50:
 
Compile the package:
 
Compile the package:
  
  make CC="gcc ${BUILD64} -fPIC" LD="ld ${LD_BUILD64}"  
+
  make CC="gcc ${BUILD64} -fPIC" LD="gcc -shared ${BUILD64} -fPIC"
  
 
Install the package
 
Install the package
  
  make LIBDIR=/lib64 install &&
+
  make lib=lib64 LIBDIR=/lib64 install &&
 
  chmod -v 755 /lib64/libcap.so.{{libcap-Version}}
 
  chmod -v 755 /lib64/libcap.so.{{libcap-Version}}

Revision as of 07:24, 25 December 2008

Download Source: http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.22.tar.gz

Dependencies

Required

Non-Multilib

Compile the package:

make

Install the package

make install &&
chmod -v 755 /lib/libcap.so.2.22

Multilib

32Bit

Compile the package:

make CC="gcc ${BUILD32} -fPIC" LD="gcc -shared ${BUILD32} -fPIC"

Install the package

make lib=lib install &&
chmod -v 755 /lib/libcap.so.2.22

N32

Compile the package:

make CC="gcc ${BUILDN32} -fPIC" LD="gcc -shared ${BUILDN32} -fPIC"

Install the package

make lib=lib32 LIBDIR=/lib32 install &&
chmod -v 755 /lib32/libcap.so.2.22

64Bit

Compile the package:

make CC="gcc ${BUILD64} -fPIC" LD="gcc -shared ${BUILD64} -fPIC"

Install the package

make lib=lib64 LIBDIR=/lib64 install &&
chmod -v 755 /lib64/libcap.so.2.22
Retrieved from "?title=Libcap&oldid=16417"