Skip to content

Commit a8b1016

Browse files
committed
Updated specs.
* ce2019-specs (cpp): Added paths for Xcode, CommandLineTools. (cc1plus): likewise. (linker): added -L/usr/lib. * gcc9-specs (cpp): Added paths for Xcode, CommandLineTools. (cc1plus): likewise. * .gitignore: new.
1 parent 6d06080 commit a8b1016

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.ali
2+
*.o
3+
*~
4+
5+
a.out
6+
hello

ce2019-specs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
as %(asm_options) %m.s %A } }
1616

1717
*cpp:
18-
%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__} %{pthread:-D_REENTRANT}
18+
%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__} %{pthread:-D_REENTRANT} -idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
1919

2020
*cpp_options:
2121
%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{%:debug-level-gt(0):%{g*} %{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps*:-fpch-preprocess}
@@ -36,7 +36,7 @@ cc1 -E %{traditional|traditional-cpp:-traditional-cpp}
3636
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %{!iplugindir*:%{fplugin*:%:find-plugindir()}} %1 %{!Q:-quiet} %{!dumpbase:-dumpbase %B} %{d*} %{m*} %{aux-info*} %{fcompare-debug-second:%:compare-debug-auxbase-opt(%b)} %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{Qy:} %{-help:--help} %{-target-help:--target-help} %{-version:--version} %{-help=*:--help=%*} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{coverage:-fprofile-arcs -ftest-coverage} %{fdump-scos:-fpreserve-decisions-generic} %{fprofile-arcs|fprofile-generate*|coverage: %{!fprofile-update=single: %{pthread:-fprofile-update=prefer-atomic}}}
3737

3838
*cc1plus:
39-
39+
-idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
4040

4141
*link_gcc_c_sequence:
4242
%:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) %{!static:%{!static-libgcc: %:version-compare(>= 10.6 mmacosx-version-min= -lSystem) } } %{fno-pic|fno-PIC|fno-pie|fno-PIE|fapple-kext|mkernel|static|mdynamic-no-pic: %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) } %G %{!nolibc:%L}
@@ -90,7 +90,7 @@ cc1 -E %{traditional|traditional-cpp:-traditional-cpp}
9090

9191

9292
*linker:
93-
collect2
93+
collect2 -L/usr/lib
9494

9595
*linker_plugin_file:
9696

gcc9-specs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
as %(asm_options) %m.s %A } }
1616

1717
*cpp:
18-
%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__} %{pthread:-D_REENTRANT}
18+
%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__} %{pthread:-D_REENTRANT} -idirafter /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
1919

2020
*cpp_options:
2121
%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{%:debug-level-gt(0):%{g*} %{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps*:-fpch-preprocess}
@@ -36,7 +36,7 @@ cc1 -E %{traditional|traditional-cpp:-traditional-cpp}
3636
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %{!iplugindir*:%{fplugin*:%:find-plugindir()}} %1 %{!Q:-quiet} %{!dumpbase:-dumpbase %B} %{d*} %{m*} %{aux-info*} %{fcompare-debug-second:%:compare-debug-auxbase-opt(%b)} %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{Qy:} %{-help:--help} %{-target-help:--target-help} %{-version:--version} %{-help=*:--help=%*} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{coverage:-fprofile-arcs -ftest-coverage} %{fprofile-arcs|fprofile-generate*|coverage: %{!fprofile-update=single: %{pthread:-fprofile-update=prefer-atomic}}}
3737

3838
*cc1plus:
39-
39+
-idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -idirafter /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
4040

4141
*link_gcc_c_sequence:
4242
%:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) %{!static:%{!static-libgcc: %:version-compare(>= 10.6 mmacosx-version-min= -lSystem) } } %{fno-pic|fno-PIC|fno-pie|fno-PIE|fapple-kext|mkernel|static|mdynamic-no-pic: %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) } %{!nostdlib:%:version-compare(>< 10.6 10.7 mmacosx-version-min= -ld10-uwfef.o)} %G %{!nolibc:%L}

0 commit comments

Comments
 (0)