D 2006-10-29T21:39:07 J assignee nobody J cmimetype text/plain J comment The\sTcl\sconfigure\sscript,\swhen\sit\sprocesses\sa\snumber\sof\nactions\sduring\sthe\sconfigure\sprocess,\suses\sCPPFLAGS\sto\ntest\sthe\scompiler.\s\sBut\swhen\sit\scomes\sto\sthe\sactual\nbuild\sprocess,\sthis\senvironment\svariable\sis\stotally\nignored.\n\nThe\sreason\sfor\sneeding\sthis\sis\sto\sbetter\ssupport\sa\ngeneral\sapplication\senvironment,\sand\sthe\sintegration\sof\nTcl\slibraries\sinto\sthat\senvironment.\s\sIn\sthese\sbuilds,\na\sclean\sseparation\sis\sdesired\sbetween\sCFLAGS\s(used\sonly\nfor\sthe\sC\scompiler),\sCXXFLAGS\s(used\sonly\sfor\sthe\sC++\ncompiler),\sand\sCPPFLAGS\s(for\ssettings\sin\scommon\sbetween\nthe\sC\sand\sC++\scompilers).\n\nAs\san\sexample\sof\show\sthis\sfailure\scauses\sproblems,\son\nthe\sSolaris\splatform,\sthe\s-D_POSIX_C_SOURCE=200112L\nflag\sshould\sbe\sset\sin\sCFLAGS\sto\sconform\sto\sthe\srest\sof\nthe\sapplication\sbuild,\sand\s-D__EXTENSIONS__\sflag\sshould\nbe\sset\sin\sCPPFLAGS.\s\sBut\swith\sthis\scombination\sof\nenvironment\svariables,\sand\s-D__EXTENSIONS__\sin\sCPPFLAGS\nbeing\signored,\sthe\scompilation\sof\stclUnixChan.c\nfails\sbecause\scertain\ssymbols\s(such\sas\sTIOCMGET)\sfrom\n\sdo\snot\sget\sdefined.\n J foundin obsolete:\s8.4.14 J is_private 0 J priority 5\sMedium J resolution None J status Open J submitter eponym J subsystem 53.\sConfiguration\sand\sBuild\sTools J title CPPFLAGS\sis\snot\sproperly\ssupported J type Bug K 1586861fffffffffffffffffffffffffffffffff U eponym Z 230073aef9ebae131a11249488cfb5e4