[ 
https://issues.apache.org/activemq/browse/AMQCPP-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nathan Mittler closed AMQCPP-51.
--------------------------------

    Resolution: Duplicate

This is a duplicate of AMQCPP-49.  I have re-opened that issue to address this. 
 

> Autoconf is not properly setting CXXFLAGS on Linux
> --------------------------------------------------
>
>                 Key: AMQCPP-51
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-51
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Albert Strasheim
>         Assigned To: Nathan Mittler
>             Fix For: 2.0
>
>
> I'm running Fedora Core 6 with autoconf 2.59 and automake 1.9.6.
> It seems the CXXFLAGS stuff in configure.ac isn't actually setting CXXFLAGS 
> used to compile.
> If you check the generated src/main/Makefile, you'll only see:
> {noformat}
> CXXFLAGS = -D HAVE_ACTIVEMQ_CONFIG
> {noformat}
> and when running make you get
> {noformat}
> make  all-recursive
> make[1]: Entering directory `/home/albert/work/activemq-cpp'
> Making all in src/main
> make[2]: Entering directory `/home/albert/work/activemq-cpp/src/main'
> if g++ -DHAVE_CONFIG_H -I. -I. -I../..     -D HAVE_ACTIVEMQ_CONFIG -MT 
> ActiveMQConsumer.o -MD -MP -MF ".deps/ActiveMQConsumer.Tpo" -c -o 
> ActiveMQConsumer.o `test -f 'activemq/core/ActiveMQConsumer.cpp' || echo 
> './'`activemq/core/ActiveMQConsumer.cpp; \
>         then mv -f ".deps/ActiveMQConsumer.Tpo" ".deps/ActiveMQConsumer.Po"; 
> else rm -f ".deps/ActiveMQConsumer.Tpo"; exit 1; fi
> {noformat}
> which is missing all the options specified in configure.ac.
> By the way, you might consider adding -g and -O2.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to