On 5/10/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
On 5/10/06, Filip Bartmann <[EMAIL PROTECTED]> wrote:
> Dan Nicholson píše v St 10. 05. 2006 v 12:17 -0700:
> > export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
> > export CXXFLAGS="$CXXFLAGS -DLDAP_DEPRECATED"
> Yes, that's right. I was used only CFLAGS, when I compile Gnome Meeting.
> When I use CXXFLAGS too, then package is builded successfully.

This is because ils.cpp is a C++ program.  In that case g++ is run
instead of gcc, and CXXFLAGS are used instead of CFLAGS.

Filip,

As long as you have everything set up, could you see if the following
works instead?

CPPFLAGS="-DLDAP_DEPRECATED" ./configure ...

Since -D is a preprocessor directive, it should really be in CPPFLAGS,
the C PreProcessor FLAGS.  Sometimes this doesn't work, though, if the
Makefiles aren't written correctly.  Looking at src/Makefile.in, this
should work, since the automake generated Makefile looks like this:

===
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
===

This variable should be used when *.cpp files are compiled.

Thanks.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to