views:

30

answers:

1

Hi,

I have a configure script where I need to pass an option that contains a comma. Now if it weren't for the comma I could put some "s around to make configure recognize the string as a whole:

 ./configure --with-arpack="-Wl,-rpath,/my/path -L/my/path -larpack"

But the commas are interpreted as option delimiters, so the script only recognizes -Wl as the handed over option:

=== With linker flags: -Wl -rpath /my/path -L/my/path -larpack

How can I get around this?

Sebastian

A: 

Use LDFLAGS and LIBS instead:

$ export LDFLAGS="-Wl,-rpath,/my/path -L/my/path"
$ export LIBS="-larpack"
$ ./configure --with-arpack
ldav1s
thanks, it worked!
steigers
Please accept the answer.
ldav1s