我想用自定义的 .gccXXX 包进行重建--prefix
。
我知道如何重建(使用以下命令)它,但我如何提供自定义--prefix
?:
apt-get build-dep -y gcc-4.9-multilib
apt-get source -y gcc-4.9-multilib
dpkg-source -x gcc-4.9_4.9.2-0ubuntu1~12.04.dsc
cd gcc-4.9-4.9.2
dpkg-buildpackage -rfakeroot -b
答案1
正确的方式:
apt-get build-dep -y gcc-4.9-multilib
apt-get source -y gcc-4.9-multilib
dpkg-source -x gcc-4.9_4.9.2-0ubuntu1~12.04.dsc
cd gcc-4.9-4.9.2
./contrib/download_prerequisites
mkdir objdir&& cd objdir
$PWD/../src/configure --prefix=/opt/rdwr_tools/radware-dev-tools-4.9 \
-v --with-pkgversion='Ubuntu/Linaro 4.9.2-0ubuntu1~12.04' \
--program-suffix=-4.9 --enable-shared --enable-linker-build-id --with-system-zlib \
--libexecdir=/opt/rdwr_tools/radware-dev-tools-4.9/lib --without-included-gettext \
--enable-threads=posix --with-gxx-include-dir=/opt/rdwr_tools/radware-dev-tools-4.9/include/c++/4.9 \
--libdir=/opt/rdwr_tools/radware-dev-tools-4.9/lib --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes \
--enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror \
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64 --with-tune=generic \
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-sysroot=/ --enable-nls
make && make install