Attachment 'boost.patch'
Download 1 diff -wurx '(*.obj|*.o|*.gil*|*.lib|*.bin.v2|*.exe|*.ilk|*.pdb)' boost_1_34_1/tools/build/v2/tools/darwin.jam boost/tools/build/v2/tools/darwin.jam
2 --- boost_1_34_1/tools/build/v2/tools/darwin.jam 2007-03-14 21:02:23.000000000 -0700
3 +++ boost/tools/build/v2/tools/darwin.jam 2007-08-08 09:12:54.640625000 -0700
4 @@ -49,8 +49,64 @@
5
6 feature framework : : free ;
7
8 +# ADOBE : Adding architecture variant to build i386, ppc, or universal binaries;
9 +# also adding static c++ lib settings and dead stripping on release
10 +
11 +# The following adds objective-c support to darwin.
12 +# Thanks to http://thread.gmane.org/gmane.comp.lib.boost.build/13759
13 +
14 +type.register OBJECTIVE_C : m ;
15 +type.register OBJECTIVE_CPP : mm ;
16 +
17 +generators.register-c-compiler darwin.compile.m : OBJECTIVE_C : OBJ : <toolset>darwin ;
18 +generators.register-c-compiler darwin.compile.mm : OBJECTIVE_CPP : OBJ : <toolset>darwin ;
19 +
20 +rule compile.m
21 +{
22 + LANG on $(<) = "-x objective-c" ;
23 +}
24 +
25 +actions compile.m
26 +{
27 + "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
28 +}
29 +
30 +rule compile.mm
31 +{
32 + LANG on $(<) = "-x objective-c++" ;
33 +}
34 +
35 +actions compile.mm
36 +{
37 + "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
38 +}
39 +
40 +feature sdkroot : 10.4 10.3.9 10.2.8 : propagated link-incompatible ;
41 +flags darwin.compile OPTIONS <sdkroot>10.4 : -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 ;
42 +flags darwin.link OPTIONS <sdkroot>10.4 : -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 ;
43 +flags darwin.compile OPTIONS <sdkroot>10.3.9 : -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -mmacosx-version-min=10.3.9 ;
44 +flags darwin.link OPTIONS <sdkroot>10.3.9 : -isysroot /Developer/SDKs/MacOSX10.3.9.sdk -mmacosx-version-min=10.3.9 ;
45 +flags darwin.compile OPTIONS <sdkroot>10.2.8 : -isysroot /Developer/SDKs/MacOSX10.2.8.sdk -mmacosx-version-min=10.2.8 ;
46 +flags darwin.link OPTIONS <sdkroot>10.2.8 : -isysroot /Developer/SDKs/MacOSX10.2.8.sdk -mmacosx-version-min=10.2.8 ;
47 +
48 +feature arch : native ppc i386 fat : composite propagated ;
49 +flags darwin.compile OPTIONS <arch>fat : -arch i386 -arch ppc ;
50 +flags darwin.link OPTIONS <arch>fat : -arch i386 -arch ppc ;
51 +flags darwin.compile OPTIONS <arch>i386 : -arch i386 ;
52 +flags darwin.link OPTIONS <arch>i386 : -arch i386 ;
53 +flags darwin.compile OPTIONS <arch>ppc : -arch ppc ;
54 +flags darwin.link OPTIONS <arch>ppc : -arch ppc ;
55 +
56 +feature c++-lib : dynamic static : link-incompatible composite propagated ;
57 +flags darwin.compile OPTIONS <c++-lib>static : -fvisibility=hidden -fvisibility-inlines-hidden ;
58 +flags darwin.link OPTIONS <c++-lib>static : -nodefaultlibs -shared-libgcc -lstdc++-static -lgcc_eh -lgcc -lSystem ;
59 +
60 +flags darwin.link OPTIONS <variant>release : -Wl,-dead_strip -no_dead_strip_inits_and_terms ;
61 +
62 +# ADOBE end changes
63 +
64 flags darwin.compile OPTIONS <link>shared : -dynamic ;
65 -flags darwin.compile OPTIONS : -Wno-long-double -no-cpp-precomp ;
66 +flags darwin.compile OPTIONS : -Wno-long-double -no-cpp-precomp -gdwarf-2 ;
67
68 flags darwin.link FRAMEWORK <framework> ;
69
70 @@ -91,6 +147,10 @@
71
72 actions piecemeal archive
73 {
74 - ar -c -r -s $(ARFLAGS) "$(<:T)" "$(>:T)"
75 + # ADOBE : We use libtool instead of ar to support universal binary linking
76 +
77 + libtool -static -o "$(<:T)" $(ARFLAGS) "$(>:T)"
78 +
79 + # ADOBE end changes
80 }
81
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.- [get | view] (2011-10-26 21:54:23, 0.0 KB) [[attachment:PkgInfo]]
- [get | view] (2011-10-26 21:54:23, 155.5 KB) [[attachment:QHelp.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:QHelp.plist]]
- [get | view] (2011-10-26 21:54:23, 0.1 KB) [[attachment:applaunch.sh]]
- [get | view] (2011-10-26 21:54:23, 2.9 KB) [[attachment:argvemulator.py]]
- [get | view] (2011-10-26 21:54:23, 3.3 KB) [[attachment:boost.patch]]
- [get | view] (2011-10-26 21:54:23, 157.0 KB) [[attachment:boxer.icns]]
- [get | view] (2011-10-26 21:54:23, 1.3 KB) [[attachment:boxer.plist]]
- [get | view] (2011-10-26 21:54:23, 117.9 KB) [[attachment:checkslice.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:checkslice.plist]]
- [get | view] (2011-10-26 21:54:23, 67.8 KB) [[attachment:ctfit.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:ctfit.plist]]
- [get | view] (2011-10-26 21:54:23, 5.7 KB) [[attachment:darwin.jam]]
- [get | view] (2011-10-26 21:54:23, 213.8 KB) [[attachment:eman.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:eman.plist]]
- [get | view] (2011-10-26 21:54:23, 0.2 KB) [[attachment:emaninit.sh]]
- [get | view] (2011-10-26 21:54:23, 172.3 KB) [[attachment:helixboxer.icns]]
- [get | view] (2011-10-26 21:54:23, 1.2 KB) [[attachment:helixboxer.plist]]
- [get | view] (2011-10-26 21:54:23, 126.1 KB) [[attachment:icon-box.icns]]
- [get | view] (2011-10-26 21:54:23, 134.2 KB) [[attachment:icon-dm3.icns]]
- [get | view] (2011-10-26 21:54:23, 185.8 KB) [[attachment:icon-hed.icns]]
- [get | view] (2011-10-26 21:54:23, 192.4 KB) [[attachment:icon-img.icns]]
- [get | view] (2011-10-26 21:54:23, 150.6 KB) [[attachment:icon-lst.icns]]
- [get | view] (2011-10-26 21:54:23, 230.8 KB) [[attachment:icon-mrc.icns]]
- [get | view] (2011-10-26 21:54:23, 0.3 KB) [[attachment:init.EMAN.csh]]
- [get | view] (2011-10-26 21:54:23, 0.2 KB) [[attachment:init.EMAN.sh]]
- [get | view] (2011-10-26 21:54:23, 58.2 KB) [[attachment:jpeg-v6b-patch.tar.gz]]
- [get | view] (2011-10-26 21:54:23, 0.7 KB) [[attachment:jpegpatch.zip]]
- [get | view] (2011-10-26 21:54:23, 53.6 KB) [[attachment:libtool135update.zip]]
- [get | view] (2011-10-26 21:54:23, 3.0 KB) [[attachment:makedist.sh]]
- [get | view] (2011-10-26 21:54:23, 203.1 KB) [[attachment:qindex.icns]]
- [get | view] (2011-10-26 21:54:23, 1.0 KB) [[attachment:qindex.plist]]
- [get | view] (2011-10-26 21:54:23, 128.2 KB) [[attachment:qplot.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:qplot.plist]]
- [get | view] (2011-10-26 21:54:23, 182.7 KB) [[attachment:qsegment.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:qsegment.plist]]
- [get | view] (2011-10-26 21:54:23, 3.8 KB) [[attachment:qt3mac.patch.txt]]
- [get | view] (2011-10-26 21:54:23, 2.6 KB) [[attachment:qt3mac.patch2.txt]]
- [get | view] (2011-10-26 21:54:23, 112.3 KB) [[attachment:triplot.icns]]
- [get | view] (2011-10-26 21:54:23, 0.5 KB) [[attachment:triplot.plist]]
- [get | view] (2011-10-26 21:54:23, 171.9 KB) [[attachment:v2.icns]]
- [get | view] (2011-10-26 21:54:23, 2.3 KB) [[attachment:v2.plist]]
- [get | view] (2011-10-26 21:54:23, 175.1 KB) [[attachment:v4.icns]]
- [get | view] (2011-10-26 21:54:23, 0.8 KB) [[attachment:v4.plist]]
You are not allowed to attach a file to this page.