Skip to content

Commit

Permalink
Darwin, ppc: Add system stubs for all 32b PPC
Browse files Browse the repository at this point in the history
This is a minor adjustment to make the GCC behaviour better match the
old system tools.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

gcc/ChangeLog:

	* config/rs6000/darwin.h (LIB_SPEC): Include libSystemStubs for
	all 32b Darwin PowerPC cases.
  • Loading branch information
iains committed Sep 4, 2023
1 parent 68dc3e9 commit b3ab28c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcc/config/rs6000/darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
Include libmx when targeting Darwin 7.0 and above, but before libSystem,
since the functions are actually in libSystem but for 7.x compatibility
we want them to be looked for in libmx first.
Include libSystemStubs when compiling against 10.3 - 10.5 SDKs (we assume
Include libSystemStubs when compiling against 10.3 - 10.6 SDKs (we assume
this is the case when targetting these) - but not for 64-bit long double.
Don't do either for m64, the library is either a dummy or non-existent.
*/
Expand All @@ -107,8 +107,8 @@
#define LIB_SPEC \
"%{!static: \
%{!m64:%{!mlong-double-64: \
%{pg:%:version-compare(>< 10.3 10.5 mmacosx-version-min= -lSystemStubs_profile)} \
%{!pg:%:version-compare(>< 10.3 10.5 mmacosx-version-min= -lSystemStubs)} \
%{pg:%:version-compare(>< 10.3 10.7 mmacosx-version-min= -lSystemStubs_profile)} \
%{!pg:%:version-compare(>< 10.3 10.7 mmacosx-version-min= -lSystemStubs)} \
%:version-compare(>< 10.3 10.4 mmacosx-version-min= -lmx)}} \
-lSystem \
}"
Expand Down

0 comments on commit b3ab28c

Please sign in to comment.