From: <ai...@us...> - 2013-12-02 00:53:23
|
Revision: 12798 http://sourceforge.net/p/plplot/code/12798 Author: airwin Date: 2013-12-02 00:53:19 +0000 (Mon, 02 Dec 2013) Log Message: ----------- Propagate CXXFLAGS and drop -fvisibility=hidden from both the CFLAGS and CXXFLAGS environment variables for the automatically configured build packages. This change is made because some of the software packages whose builds are automatically configured by the procedure described in README.developers) do not have gcc visibility support so it is easiest for now (until most do have visibility support) to drop that possibility for all of these packages. Modified Paths: -------------- trunk/cmake/epa_build/ragel/CMakeLists.txt Modified: trunk/cmake/epa_build/ragel/CMakeLists.txt =================================================================== --- trunk/cmake/epa_build/ragel/CMakeLists.txt 2013-12-02 00:39:22 UTC (rev 12797) +++ trunk/cmake/epa_build/ragel/CMakeLists.txt 2013-12-02 00:53:19 UTC (rev 12798) @@ -79,12 +79,20 @@ endif(MSYS_PLATFORM) #message(STATUS "modified BP_PATH for ${BP_PACKAGE} = ${BP_PATH}") +set(${BP_PACKAGE}_SET_CXXFLAGS "CXXFLAGS=$ENV{CXXFLAGS}") + +# Drop -fvisibility=hidden since that option does not work for a +# number of software packages that are configured automatically using +# this template. +string(REGEX REPLACE "-fvisibility=hidden" "" ${BP_PACKAGE}_SET_CFLAGS "${${BP_PACKAGE}_SET_CFLAGS}") +string(REGEX REPLACE "-fvisibility=hidden" "" ${BP_PACKAGE}_SET_CXXFLAGS "${${BP_PACKAGE}_SET_CXXFLAGS}") + ExternalProject_Add( build_${BP_PACKAGE} DEPENDS ${${BP_PACKAGE}_dependencies_targets} URL ${${BP_PACKAGE}_URL} URL_HASH ${${BP_PACKAGE}_DOWNLOAD_HASH_TYPE}=${${BP_PACKAGE}_DOWNLOAD_HASH} - CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${${BP_PACKAGE}_SET_CFLAGS} ${source_PATH}/${BP_CONFIGURE_COMMAND} + CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${${BP_PACKAGE}_SET_CFLAGS} ${${BP_PACKAGE}_SET_CXXFLAGS} ${source_PATH}/${BP_CONFIGURE_COMMAND} BUILD_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_MAKE_COMMAND} BUILD_IN_SOURCE OFF INSTALL_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_MAKE_COMMAND} install This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |