[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test for CXXLD

From: Robert Boehne
Subject: Re: test for CXXLD
Date: Wed, 19 Jun 2013 13:25:49 -0500
User-agent: Mozilla/5.0 (X11; SunOS i86pc; rv:14.0) Gecko/20120714 Thunderbird/14.0

Since the syntax you're using will only support one compiler anyway,
you might consider creating a shell script to do the actual configure run.

it might look something like this:

mkdir -p build
cd build
../configure --prefix=/path/ferinst --other-arguments LDFLAGS='-Xlinker "-languae charm++"'

Since it's not going to be portable you may as well skip the AM_ variables and go this route.


Robert B

On 06/19/13 13:16, Nicolas Bock wrote:
Thanks for the reply. I ended up using

AM_LDFLAGS = -Xcompiler "-language charm++"

For some reason CXXLDFLAGS was not added to the linker command in Makefile.

Thanks again,


On Thu, Jun 6, 2013 at 4:40 PM, Gavin Smith <address@hidden>wrote:

On Thu, Jun 6, 2013 at 8:08 PM, Nicolas Bock <address@hidden>

The C++ compiler I am using (charmc) needs an additional command line
argument during the linker stage (-language charm++). I am unsure how to
best add this argument. The generated makefiles use CXX for compilation
CXXLD for linking, both of which are set to "charmc". How would I change
CXXLD to add a flag? Or is there a cleaner way to accomplish this?

One way would be to pass in the flags on the command line when you
invoke make, e.g. "make CXXLDFLAGS='-language charm++'". Ideally
autoconf would set CXXLD correctly for you but it looks like it this
hasn't been implemented for this compiler.

Autoconf mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]