STR-113: sdf2-bundle 2.1 fails to build when CFLAGS are set in the environment
Running ./configure inside the sdf2-bundle directory with CFLAGS in the environment gives
…..
configure: configuring in asc-support
configure: running /bin/sh ‘./configure’ –prefix=/usr CFLAGS=-O2 -march=i586 -mcpu=i686 -fomit-frame-pointer –with-aterm=/usr –with-toolbuslib=/var/tmp/portage/sdf2-bundle-2.1/work/sdf2-bundle-2.1/local-install/toolbuslib/usr –with-pt-support=/var/tmp/portage/sdf2-bundle-2.1/work/sdf2-bundle-2.1/local-install/pt-support/usr –with-asf-support=/var/tmp/portage/sdf2-bundle-2.1/work/sdf2-bundle-2.1/local-install/asf-support/usr –with-error-support=/var/tmp/portage/sdf2-bundle-2.1/work/sdf2-bundle-2.1/local-install/error-support/usr –with-sglr=/var/tmp/portage/sdf2-bundle-2.1/work/sdf2-bundle-2.1/local-install/sglr/usr ‘–prefix=/usr’ ‘–host=i586-pc-linux-gnu’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ ‘–datadir=/usr/share’ ‘–sysconfdir=/etc’ ‘–localstatedir=/var/lib’ ‘host_alias=i586-pc-linux-gnu’ –cache-file=/dev/null –srcdir=.
configure: error: unrecognized option: -march=i586
Try `./configure –help’ for more information.
configure: error: /bin/sh ‘./configure’ failed for asc-support
——-Unsetting CFLAGS before running configure avoids the problem.
The asc-support subdirectory is the first subdir to be affected by this problem, I have not checked if any other subdirs are affected similarily.
Disabling CFLAGS before running configure, then running make with CLFAGS set will not respect the CFLAGS. Using gcc with an i686 native target to compile against an i586 target (or any form for cross-compiling) is thus not supported currently.
Submitted on 10 June 2004 at 20:34
Issue Log
STR-113, martin:
The asc-support configurations explicitly used to pass CFLAGS to asc-support. The value was not quoted and in fact it is not required at all. Removed and solved.
Log in to post comments