View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011620CMakeModulespublic2010-12-17 14:212010-12-17 15:04
ReporterSean Chittenden 
Assigned ToBrad King 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 2.8.3 
Target VersionFixed in Version 
Summary0011620: CMake + gcc 4.6 built from ports uses wrong CMAKE_C_LINK_FLAGS...
Descriptiongcc 4.6 built from ports doesn't accept the -headerpad_max_install_names argument any more. To fix, I went through and removed the flag.

/opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake lines 36 and 37


It exists in more places than just those two, however those were the only lines I needed to change to fix things. I'd supply a patch, but it's clear there needs to be a compiler version check for gcc < 4.6.
Steps To Reproduce% sudo port install gcc46

Try and use gcc-mp-4.6 to compile any C or C++ file using:

include(CMakeDetermineCXXCompiler)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024244)
Brad King (manager)
2010-12-17 15:04

We recently added "-Wl," to those flags to pass them down to the linker without requiring the front-end to support them:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=eda7841f [^]

 Issue History
Date Modified Username Field Change
2010-12-17 14:21 Sean Chittenden New Issue
2010-12-17 15:03 Brad King Assigned To => Brad King
2010-12-17 15:03 Brad King Status new => assigned
2010-12-17 15:04 Brad King Note Added: 0024244
2010-12-17 15:04 Brad King Status assigned => closed
2010-12-17 15:04 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team