summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-23 13:35:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-23 13:35:04 (GMT)
commit44e3bbce96a41814c7fdbf9c8411475772ae843c (patch)
tree4f8fd38d2c4b91d974321d74e8dcd4c58f2e89db /Modules
parentbf911785658862ed91fd164a02849e65c77e4e07 (diff)
downloadCMake-44e3bbce96a41814c7fdbf9c8411475772ae843c.zip
CMake-44e3bbce96a41814c7fdbf9c8411475772ae843c.tar.gz
CMake-44e3bbce96a41814c7fdbf9c8411475772ae843c.tar.bz2
ENH: add LDFLAGS as an initial value for all linker flags, good for -64
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeSystemSpecificInformation.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CMakeSystemSpecificInformation.cmake b/Modules/CMakeSystemSpecificInformation.cmake
index 62ca70e..8dc4816 100644
--- a/Modules/CMakeSystemSpecificInformation.cmake
+++ b/Modules/CMakeSystemSpecificInformation.cmake
@@ -158,7 +158,7 @@ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_ENV_INIT} $ENV{CXXFLAGS} ${CMAKE_CXX_FLA
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS_ENV_INIT} $ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}" CACHE STRING
"Flags for C compiler.")
-SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT}
+SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
CACHE STRING "Flags used by the linker.")
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
@@ -230,11 +230,11 @@ ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
# shared linker flags
-SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_INIT}
+SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
CACHE STRING "Flags used by the linker during the creation of dll's.")
# module linker flags
-SET (CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_INIT}
+SET (CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}
CACHE STRING "Flags used by the linker during the creation of modules.")
SET(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM} CACHE INTERNAL