From 5c8c1d624d9b56e400637e996fd060add09180a3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 13 Mar 2013 13:12:47 -0400 Subject: [PATCH] XL: Use -qpic for position independent code (#14010) According to XL C/C++ V9.0 documentation the default for -qpic/-qnopic is platform-dependent. It won't hurt to add the option on platforms where it is the default, so always add it when we want position independent code. --- Modules/Compiler/XL.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake index d293610c3..7bf5020ac 100644 --- a/Modules/Compiler/XL.cmake +++ b/Modules/Compiler/XL.cmake @@ -27,6 +27,7 @@ find_program(CMAKE_XL_CreateExportList macro(__compiler_xl lang) # Feature flags. set(CMAKE_${lang}_VERBOSE_FLAG "-V") + set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-qpic") set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g") set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O")