Ticket #22324: patch-tools-darwin.jam.diff
File patch-tools-darwin.jam.diff, 1.4 KB (added by markdigital69@…, 15 years ago) |
---|
-
tools/darwin.jam
old new 41 41 { 42 42 flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ; 43 43 } 44 # - GCC 4.2 and higher in Darwin does not have -Wno-long-double. 45 if $(gccversion) < "4.2.0" 46 { 47 flags darwin.compile OPTIONS $(condition) : -Wno-long-double ; 48 } 44 49 45 50 gcc.init-link-flags darwin darwin $(condition) ; 46 51 … … 50 55 feature framework : : free ; 51 56 52 57 flags darwin.compile OPTIONS <link>shared : -dynamic ; 53 flags darwin.compile OPTIONS : - Wno-long-double -no-cpp-precomp ;58 flags darwin.compile OPTIONS : -no-cpp-precomp ; 54 59 55 60 flags darwin.link FRAMEWORK <framework> ; 56 61 … … 63 68 # set up the -F option to include the paths to any frameworks used. 64 69 local rule prepare-framework-path ( target + ) 65 70 { 71 # The -framework option only takes basename of the framework. 72 # The -F option specifies the directories where a framework 73 # is searched for. So, if we find <framework> feature 74 # with some path, we need to generate property -F option. 66 75 local framework-path = [ on $(target) return $(FRAMEWORK:D) ] ; 67 76 68 FRAMEWORK_PATH on $(target) += -F$(framework-path) ; 77 # Be sure to generate no -F if there's no path. 78 if $(framework-path) != "" 79 { 80 FRAMEWORK_PATH on $(target) += -F$(framework-path) ; 81 } 69 82 } 70 83 71 84 rule link