[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation problems
From: |
Paul Jarc |
Subject: |
Re: compilation problems |
Date: |
Sun, 17 Aug 2008 15:42:08 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
These problems are still present in 2.11.56. Will they be fixed in a
future version, or is there some reason these patches are bad?
I wrote:
> I have the headers for flex (among other things) in a nonstandard
> place, so I put the necessary -I flags in $CPPFLAGS. Some parts of
> the build process don't seem to notice $CPPFLAGS, though. This is
> needed for configure to find FlexLexer.h:
>
> --- aclocal.m4~ 2008-07-24 23:33:34.000000000 -0400
> +++ aclocal.m4 2008-07-24 23:33:59.000000000 -0400
> @@ -452,7 +452,7 @@
> using namespace std;
> #include <FlexLexer.h>
> EOF
> - FLEXLEXER_FILE=`$CXX -E conftest.cc | \
> + FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
> sed 's!# 1 "\(.*FlexLexer.h\)"address@hidden@\1@@!g' | grep
> '@@' | \
> sed 'address@hidden@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2>
> /dev/null
> rm conftest.cc
>
> Later, compiling includable-lexer.cc fails, because $CPPFLAGS is only
> used for C compilation, not C++, so FlexLexer.h isn't found at that
> point. "./configure --help" doesn't mention CXXCPPFLAGS, so I used
> this patch:
>
> --- c++-vars.make~ 2008-08-05 10:41:57.000000000 -0400
> +++ c++-vars.make 2008-08-05 10:42:28.000000000 -0400
> @@ -6,7 +6,7 @@
> #EXTRA_CXXFLAGS += -Werror
> #endif
>
> -ALL_CXXPPFLAGS = $(DEFINES) $(INCLUDES:%=-I%)
> +ALL_CXXPPFLAGS = $(CPPFLAGS) $(CONFIG_CPPFLAGS) $(DEFINES) $(INCLUDES:%=-I%)
> ALL_CXXFLAGS = $(CXXFLAGS) $(ALL_CXXPPFLAGS) $($(PACKAGE)_CXXFLAGS)
> $(CONFIG_CXXFLAGS) $(MODULE_CXXFLAGS) $(EXTRA_CXXFLAGS)
>
> TCC_FILES := $(call src-wildcard,*.tcc)
>
- compilation problems, Paul Jarc, 2008/08/05
- Re: compilation problems, Mats Bengtsson, 2008/08/05
- Re: compilation problems,
Paul Jarc <=
- Re: compilation problems, Han-Wen Nienhuys, 2008/08/17
- Re: compilation problems, Paul Jarc, 2008/08/17
- Re: compilation problems, Paul Jarc, 2008/08/17
- Re: compilation problems, Reinhold Kainhofer, 2008/08/17
- [PATCH] Use $CPPFLAGS when finding FlexLexer.h, and for C++ compilation commands., Paul Jarc, 2008/08/17
- Re: [PATCH] Use $CPPFLAGS when finding FlexLexer.h, and for C++ compilation commands., Han-Wen Nienhuys, 2008/08/17
- Re: [PATCH] Use $CPPFLAGS when finding FlexLexer.h, and for C++ compilation commands., John Mandereau, 2008/08/23