Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356278 - Multi-argument variables (e.g. CFLAGS) cannot be supplied using Additional Command Line Options
Summary: Multi-argument variables (e.g. CFLAGS) cannot be supplied using Additional Co...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Autotools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 0.9.0   Edit
Assignee: Jeff Johnston CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 03:15 EDT by Daniel Thompson CLA
Modified: 2011-09-27 20:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Thompson CLA 2011-08-31 03:15:33 EDT
Build Identifier: M20110210-1200

The configure command line allows certain control variables to be set. CFLAGS is an obvious example.

These variables may contain spaces which require escaping or quoting to pass them correctly into the configure script. Whilst these can be successfully provided by changing the configure command the same text does not work in the Additional Command Line Options field.

Reproducible: Always

Steps to Reproduce:
1. Create "hello world" autotools project using wizard
2. Configure project properties 
3. Enter CFLAGS="-g -debug" into the configure -> Advanced -> Additional Command Line Options field.
4. Attempt to build project.

This results in a failure to build. I have tried using single and double quotes as well as escaping (and double escaping) the space. All result in failure.

Correct behaviour is observed if the CFLAGS="-g -debug" is appended to the configure command.
Comment 1 Jeff Johnston CLA 2011-09-01 18:42:36 EDT
(In reply to comment #0)
> Build Identifier: M20110210-1200
> 
> The configure command line allows certain control variables to be set. CFLAGS
> is an obvious example.
> 
> These variables may contain spaces which require escaping or quoting to pass
> them correctly into the configure script. Whilst these can be successfully
> provided by changing the configure command the same text does not work in the
> Additional Command Line Options field.
> 

I'll take a look at it.  Right now only the command gets stripped of environment variables.
Comment 2 Jeff Johnston CLA 2011-09-15 17:24:55 EDT
(In reply to comment #0)

Fix has been made in master repository.  You can now specify environment variables in either the configure command or in the additional options.  In addition, I added code to display command-line environment variables in the configure console as the launcher just shows the command.

You should see the fix shortly in our nightly builds for Juno.  Unfortunately, this is too late to make Indigo SR1 but will appear on our nightly Indigo build site once SR1 is complete.
Comment 3 Andrew Overholt CLA 2011-09-27 20:59:17 EDT
Setting target milestone.