qmake adds '-g' flag to compile under redhat 6 -


i have bash script compiles program or without symbols based on flag. first makes makefile 1 of these commands

$qmake -makefile config-=release config+=debug $basedir/project/myproj.pro $qmake -makefile config-=debug config+=release $basedir/project/myproj.pro 

this works fine under fedora, under redhat 6 notice makefile has -g parameter added compiler option. (regarless of of above commands issue). under rh6 latter line produces:

cflags        = -pipe -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o2 -wall -w -d_reentrant -fpie $(defines) 

while under fedora 20 produces:

cflags        = -pipe -o2 -wall -w -d_reentrant -fpie $(defines) 

can explain why qmake produces different makefiles under 2 versions of linux, , how fix this? (so latter command not add -g parameter compiler)


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

android - Go back to previous fragment -