Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32530

CFLAGS picked up from environment are overridden by mkspecs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.8.0 Alpha
    • 4.8.5
    • Build System
    • None
    • fd3e12e7a6c71a244650415a86e98d910a011ebe

      Hello, in the configure phase the build system adds -O2 after user's CFLAGS ignoring user's -O*.

      My CFLAGS:
      CFLAGS="-march=native -O2 -pipe"
      
      Output:
      x86_64-pc-linux-gnu-g++ -c -pipe -mmmx -march=native -O2 -pipe -std=c++0x -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/freetype2 -o mmx.o mmx.cpp
      x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-O1 -o mmx mmx.o     -L/usr/lib64 -mmmx 
      mmx enabled.
      3dnow auto-detection... ()
      x86_64-pc-linux-gnu-g++ -c -pipe -m3dnow -march=native -O2 -pipe -std=c++0x -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/freetype2 -o 3dnow.o 3dnow.cpp
      x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-O1 -o 3dnow 3dnow.o     -L/usr/lib64 -m3dnow 
      [...]
      
      
      Same on another system:
      i686-pc-linux-gnu-g++ -c -pipe -mmmx -Os -g0 -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/freetype2 -o mmx.o mmx.cpp
      i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-O1 -o mmx mmx.o     -mmmx 
      mmx enabled.
      3dnow auto-detection... ()
      i686-pc-linux-gnu-g++ -c -pipe -m3dnow -Os -g0 -pipe -O2 -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/freetype2 -o 3dnow.o 3dnow.cpp
      i686-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-O1 -o 3dnow 3dnow.o     -m3dnow 
      [...]
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            phr33d0m Denis M. (Phr33d0m)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes