This is an automated email from the git hooks/post-receive script. locutusofborg-guest pushed a commit to branch fix-fPIC in repository hedgewars.
commit bf52fcc9e97b7750cbc9edca6f983988bf2c032b Author: Gianfranco Costamagna <[email protected]> Date: Fri Jan 3 13:07:19 2014 +0100 Fixed fPIC link failure with arm and sparc architectures, fixing issue #757 --- cmake_modules/platform.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake_modules/platform.cmake b/cmake_modules/platform.cmake index fcb5bef..857a394 100644 --- a/cmake_modules/platform.cmake +++ b/cmake_modules/platform.cmake @@ -106,5 +106,12 @@ endif(WIN32) if(UNIX) add_flag_append(CMAKE_C_FLAGS "-fPIC") add_flag_append(CMAKE_CXX_FLAGS "-fPIC") - add_flag_append(CMAKE_Pascal_FLAGS "-fPIC") + enable_language(Pascal) + include(TargetArch) + target_architecture(CMAKE_TARGET_ARCHITECTURES) + if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_LESS 2.7) + if(${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386") + add_flag_append(CMAKE_Pascal_FLAGS "-fPIC") + endif(${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386") + endif(${CMAKE_Pascal_COMPILER_VERSION} VERSION_LESS 2.7) endif(UNIX) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/hedgewars.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

