Sometimes it is useful to override the CFLAGS to compile a program,
(particularly if the default are suboptimal, like -m486, on current
systems).

This patch to base-configure.in allows the compiling user to override
settings by appending the CFLAGS/LDFLAGS from the environment to the
defaults (as is normal with autoconf generated scripts). It is against
version 1.0.0.

Notes -
        1) binutils-2.9.5.0.25 is broken wrt link stage (not dosemu bug)
        
        2) the config.guess, config.sub scripts are ancient and should
        be updated (e.g. from autoconf release, or even better, cvs).

--- base-configure.in.~1~	Sun Mar  5 18:11:59 2000
+++ base-configure.in	Fri Mar 31 18:06:38 2000
@@ -595,7 +595,7 @@
 AC_SUBST(GLIBC_VERSION_CODE)
 AC_SUBST(GLIBCFLAGS)
 
-CFLAGS="-D_GNU_SOURCE ${OPT} ${EGCSFLAGS} ${GCC295FLAGS} ${GCC_VERSION_CODE} ${ASM_PEDANTIC} ${GLIBC_VERSION_CODE} ${GLIBCFLAGS} ${PIPE} ${USING_NET} ${CDEBUGOPTS} ${COPTFLAGS} ${INCDIR}"
+CFLAGS="-D_GNU_SOURCE ${OPT} ${EGCSFLAGS} ${GCC295FLAGS} ${GCC_VERSION_CODE} ${ASM_PEDANTIC} ${GLIBC_VERSION_CODE} ${GLIBCFLAGS} ${PIPE} ${USING_NET} ${CDEBUGOPTS} ${COPTFLAGS} ${INCDIR} ${CFLAGS}"
 
 
 
@@ -612,7 +612,7 @@
 # stderr to /dev/null
 # CFLAGS+=-DUSE_FD3_FOR_ERRORS
 
-LDFLAGS="${LNKOPTS}" # exclude symbol information
+LDFLAGS="${LNKOPTS} ${LDFLAGS}" # exclude symbol information
 AC_SUBST(LDFLAGS)
 
 dnl Create output files. If you add new ones, please do it in order.

PS. I'm not on the list.

-- 

        http://altern.org/vii

Reply via email to