What configure options were used when building gcc / libstdc++?

gcc -v prints out the configuration options among other stuff: $ gcc -v Using built-in specs. Target: i686-pc-cygwin Configured with: /gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/ configure –srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3. 4 –prefix=/usr –exec-prefix=/usr –bindir=/usr/bin –sbindir=/usr/sbin –libex ecdir=/usr/lib –datadir=/usr/share –localstatedir=/var –sysconfdir=/etc –inf odir=/usr/share/info –mandir=/usr/share/man –datadir=/usr/share –infodir=/usr /share/info –mandir=/usr/share/man -v –with-gmp=/usr –with-mpfr=/usr –enable -bootstrap –enable-version-specific-runtime-libs –with-slibdir=/usr/bin –libe xecdir=/usr/lib –enable-static –enable-shared –enable-shared-libgcc –disable -__cxa_atexit –with-gnu-ld … Read more

Append compile flags to CFLAGS and CXXFLAGS while configuration/make

You almost have it right; why did you add the semicolon? To do it on the configure line: ./configure CFLAGS=’-g -O2 -w’ CXXFLAGS=’-g -O2 -w’ To do it on the make line: make CFLAGS=’-g -O2 -w’ CXXFLAGS=’-g -O2 -w’ However, that doesn’t really remove consider all warnings as errors; that removes all warnings. So specifying … Read more

Linux configure/make, –prefix?

Do configure –help and see what other options are available. It is very common to provide different options to override different locations. By standard, –prefix overrides all of them, so you need to override config location after specifying the prefix. This course of actions usually works for every automake-based project. The worse case scenario is … Read more

How to resolve configure guessing build type failure?

search for /usr/share/automake*/config.guess check the latest version of automake $ which automake $ automake –version find the appropriate automake folder in /usr/share/automake.1.11.1/config.guess replace config.guess from your build tree with /usr/share/automake.1.11.1/config.guess (The same may/is usually needed for config.sub.)

why “make” before “make install”

When you run make, you’re instructing it to essentially follow a set of build steps for a particular target. When make is called with no parameters, it runs the first target, which usually simply compiles the project. make install maps to the install target, which usually does nothing more than copy binaries into their destinations. … Read more