Static build sniffer: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Enabling static nss prevents crashes on older Centos and some other cases. wget http://ftp.gnu.org/gnu/glibc/glibc-2.20.tar.bz2 tar xjf glibc-*.bz2 mkdir glibc-2.20-buil...") |
No edit summary |
||
Line 2: | Line 2: | ||
wget http://ftp.gnu.org/gnu/glibc/glibc-2. | wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.bz2 | ||
tar xjf glibc-*.bz2 | tar xjf glibc-*.bz2 | ||
mkdir glibc-2. | mkdir glibc-2.19-build | ||
cd glibc-2. | cd glibc-2.19-build | ||
../glibc-2. | ../glibc-2.19/configure --enable-kernel=2.6.18 --disable-profile --enable-static-nss --prefix=/usr/ | ||
make -j8 | |||
make install | |||
= 32bit = | |||
wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.bz2 | |||
tar xjf glibc-*.bz2 | |||
mkdir glibc-2.19-build | |||
cd glibc-2.19-build | |||
../glibc-2.19/configure --enable-kernel=2.6.18 --disable-profile --enable-static-nss --prefix=/usr/ --host=i686-linux-gnu --build=i686-linux-gnu CC="gcc -m32" CXX="g++ -m32" CFLAGS="-O2 -march=i686" CXXFLAGS="-O2 -march=i686" | |||
make -j8 | make -j8 | ||
make install | make install |
Revision as of 16:48, 26 September 2014
Enabling static nss prevents crashes on older Centos and some other cases.
wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.bz2 tar xjf glibc-*.bz2 mkdir glibc-2.19-build cd glibc-2.19-build ../glibc-2.19/configure --enable-kernel=2.6.18 --disable-profile --enable-static-nss --prefix=/usr/ make -j8 make install
32bit
wget http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.bz2
tar xjf glibc-*.bz2 mkdir glibc-2.19-build cd glibc-2.19-build ../glibc-2.19/configure --enable-kernel=2.6.18 --disable-profile --enable-static-nss --prefix=/usr/ --host=i686-linux-gnu --build=i686-linux-gnu CC="gcc -m32" CXX="g++ -m32" CFLAGS="-O2 -march=i686" CXXFLAGS="-O2 -march=i686"
make -j8 make install