Uploaded image for project: 'serf'
  1. serf
  2. SERF-121

scons CFLAGS doesn't accept more than one flag

    XMLWordPrintableJSON

Details

    Description

      What steps will reproduce the problem?
      1. scons CFLAGS=-g,-O0
      2. scons

      => this builds scons correctly with the added flags.

      3. cat .saved_config
      CC = ['gcc']
      CFLAGS = ['-g -O0']
      LINKFLAGS = ['']

      4. scons -c
      5. scons
      gcc -o context.o -c "-g -O0" -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -O2 -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I. -I/usr/include/apr-1 -I/usr/include context.c
      cc1: error: unrecognised debug output level " -O0"
      scons: *** [context.o] Error 1
      scons: building terminated because of errors.

      So saving the CFLAGS flags works but then using them in a next invocation of scons adds double quotes.

      Possibly the same issue with the other LINKFLAGS and LIBS.

      Attachments

        Activity

          People

            lgo Lieven Govaerts
            lgo Lieven Govaerts
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: