Re: adding conditionally a c++ file implies static linking with g++

2010-11-19 Thread Vincent Torri
Hey If the question at the bottom is related to libtool and not automake, tell me and I'll forward the mail to the libtool ML. * Vincent Torri wrote on Fri, Nov 05, 2010 at 04:56:55PM CET: foo_SOURCES = bar1.c if MY_COND foo_SOURCES += bar2.cpp else foo_SOURCES += bar2.c endif One told

Re: adding conditionally a c++ file implies static linking with g++

2010-11-07 Thread Ralf Wildenhues
Hi Vincent, * Vincent Torri wrote on Fri, Nov 05, 2010 at 04:56:55PM CET: foo_SOURCES = bar1.c if MY_COND foo_SOURCES += bar2.cpp else foo_SOURCES += bar2.c endif One told me on that ML that it is normal that automake uses g++ for linking, even if MY_COND is not verified. One possible

adding conditionally a c++ file implies static linking with g++

2010-11-05 Thread Vincent Torri
Hey, In a Makefile.am, I have something like that: foo_SOURCES = bar1.c if MY_COND foo_SOURCES += bar2.cpp else foo_SOURCES += bar2.c endif One told me on that ML that it is normal that automake uses g++ for linking, even if MY_COND is not verified. One possible way to work around that is