]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Fix mod_mongo build when no CFLAGS/CXXFLAGS are set in environment
authorTravis Cross <tc@traviscross.com>
Thu, 3 Jan 2013 17:38:28 +0000 (17:38 +0000)
committerTravis Cross <tc@traviscross.com>
Thu, 3 Jan 2013 17:38:28 +0000 (17:38 +0000)
commitb2714cbc303a637f31d2629859f732d1b28d9407
tree60f89e1eddb6e97dc59223f43eb80d029fa5fa5a
parent99a8052096b101fb013a405dbd06c5b9784a4380
Fix mod_mongo build when no CFLAGS/CXXFLAGS are set in environment

os.environ['CFLAGS'] raises a KeyError if no CFLAGS variable is set in
the environment.  So instead we use os.environ.get('CFLAGS','') which
will return the empty string in the event no CFLAGS variable is set.

The previous problematic pattern originated from the suggested code
here for importing the build environment in SCons:

  http://www.scons.org/wiki/FrequentlyAskedQuestions#Why_doesn.27t_SCons_find_my_compiler.2BAC8-linker.2BAC8-etc..3F_I_can_execute_it_just_fine_from_the_command_line.

FS-4746 --resolve
src/mod/applications/mod_mongo/Makefile