I hope this is what you had in mind: --enable-debug adds -g (unconditionally) --disable-debug removes -g (if it was already in there somehow) (giving neither does nothing)
I hope this is what you had in mind:
--enable-debug adds -g (unconditionally)
--disable-debug removes -g (if it was already in there somehow)
(giving neither does nothing)

Since none of the templates default CFLAGS with a -g you're not likely
to
end up with two -g flags. Not that they'd hurt though.

It doesn't do anything about C++.

Peter Eisentraut

greenplum-db/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,edespino/gpdb,lisakowen/gpdb,postmind-net/postgres-xl,edespino/gpdb,xinzweb/gpdb,rubikloud/gpdb,snaga/postgres-xl,jmcatamney/gpdb,snaga/postgres-xl,zaksoup/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,royc1/gpdb,Chibin/gpdb,snaga/postgres-xl,xinzweb/gpdb,Chibin/gpdb,cjcjameson/gpdb,Quikling/gpdb,tangp3/gpdb,randomtask1155/gpdb,zeroae/postgres-xl,ovr/postgres-xl,Chibin/gpdb,ahachete/gpdb,kaknikhil/gpdb,janebeckman/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,lisakowen/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,Quikling/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,adam8157/gpdb,tangp3/gpdb,rvs/gpdb,xuegang/gpdb,lpetrov-pivotal/gpdb,ahachete/gpdb,lisakowen/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,lintzc/gpdb,zaksoup/gpdb,arcivanov/postgres-xl,pavanvd/postgres-xl,randomtask1155/gpdb,rvs/gpdb,kmjungersen/PostgresXL,lpetrov-pivotal/gpdb,greenplum-db/gpdb,ahachete/gpdb,pavanvd/postgres-xl,adam8157/gpdb,Quikling/gpdb,cjcjameson/gpdb,tpostgres-projects/tPostgres,ashwinstar/gpdb,zeroae/postgres-xl,rvs/gpdb,xuegang/gpdb,royc1/gpdb,janebeckman/gpdb,kaknikhil/gpdb,janebeckman/gpdb,xuegang/gpdb,adam8157/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,Postgres-XL/Postgres-XL,0x0FFF/gpdb,xuegang/gpdb,ashwinstar/gpdb,atris/gpdb,50wu/gpdb,cjcjameson/gpdb,adam8157/gpdb,ahachete/gpdb,Chibin/gpdb,50wu/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,atris/gpdb,arcivanov/postgres-xl,lpetrov-pivotal/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,ahachete/gpdb,chrishajas/gpdb,lisakowen/gpdb,tangp3/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,rubikloud/gpdb,ahachete/gpdb,yazun/postgres-xl,Chibin/gpdb,postmind-net/postgres-xl,lintzc/gpdb,chrishajas/gpdb,rvs/gpdb,tpostgres-projects/tPostgres,yazun/postgres-xl,royc1/gpdb,kmjungersen/PostgresXL,edespino/gpdb,foyzur/gpdb,zaksoup/gpdb,edespino/gpdb,0x0FFF/gpdb,atris/gpdb,Quikling/gpdb,yuanzhao/gpdb,zaksoup/gpdb,chrishajas/gpdb,chrishajas/gpdb,zeroae/postgres-xl,kaknikhil/gpdb,50wu/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,royc1/gpdb,edespino/gpdb,xinzweb/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,ashwinstar/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,rubikloud/gpdb,tpostgres-projects/tPostgres,foyzur/gpdb,ashwinstar/gpdb,tangp3/gpdb,janebeckman/gpdb,rubikloud/gpdb,lintzc/gpdb,techdragon/Postgres-XL,rvs/gpdb,kaknikhil/gpdb,Quikling/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,zaksoup/gpdb,ovr/postgres-xl,0x0FFF/gpdb,janebeckman/gpdb,techdragon/Postgres-XL,Quikling/gpdb,atris/gpdb,adam8157/gpdb,foyzur/gpdb,CraigHarris/gpdb,Chibin/gpdb,tangp3/gpdb,lintzc/gpdb,atris/gpdb,edespino/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,kaknikhil/gpdb,lpetrov-pivotal/gpdb,tangp3/gpdb,50wu/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,kaknikhil/gpdb,oberstet/postgres-xl,randomtask1155/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,lintzc/gpdb,kaknikhil/gpdb,Quikling/gpdb,ahachete/gpdb,janebeckman/gpdb,ashwinstar/gpdb,randomtask1155/gpdb,atris/gpdb,chrishajas/gpdb,ovr/postgres-xl,snaga/postgres-xl,xuegang/gpdb,yazun/postgres-xl,postmind-net/postgres-xl,xinzweb/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,kmjungersen/PostgresXL,royc1/gpdb,jmcatamney/gpdb,50wu/gpdb,lisakowen/gpdb,xuegang/gpdb,foyzur/gpdb,Quikling/gpdb,xuegang/gpdb,50wu/gpdb,janebeckman/gpdb,tangp3/gpdb,arcivanov/postgres-xl,lintzc/gpdb,atris/gpdb,cjcjameson/gpdb,royc1/gpdb,chrishajas/gpdb,janebeckman/gpdb,xuegang/gpdb,arcivanov/postgres-xl,lintzc/gpdb,edespino/gpdb,ashwinstar/gpdb,zaksoup/gpdb,CraigHarris/gpdb,Quikling/gpdb,adam8157/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,lisakowen/gpdb,greenplum-db/gpdb,rvs/gpdb,Chibin/gpdb,foyzur/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,rubikloud/gpdb,jmcatamney/gpdb,foyzur/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,edespino/gpdb,rvs/gpdb,ovr/postgres-xl,kmjungersen/PostgresXL,Quikling/gpdb,foyzur/gpdb,kaknikhil/gpdb,rubikloud/gpdb,edespino/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,tangp3/gpdb,zeroae/postgres-xl,zaksoup/gpdb,rubikloud/gpdb,lisakowen/gpdb,janebeckman/gpdb,ahachete/gpdb,lintzc/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,yazun/postgres-xl,yuanzhao/gpdb,rvs/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,snaga/postgres-xl,chrishajas/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,foyzur/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,Postgres-XL/Postgres-XL,royc1/gpdb,lisakowen/gpdb,50wu/gpdb,lpetrov-pivotal/gpdb,rvs/gpdb,xinzweb/gpdb,Chibin/gpdb,greenplum-db/gpdb,postmind-net/postgres-xl,edespino/gpdb,janebeckman/gpdb,zaksoup/gpdb,rubikloud/gpdb,xuegang/gpdb,chrishajas/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,yazun/postgres-xl,zeroae/postgres-xl,oberstet/postgres-xl,xinzweb/gpdb