Skip to content

Commit

Permalink
autotools, darwin: restrict -force_cpusubtype_ALL switch to powerpc only
Browse files Browse the repository at this point in the history
Fixes: xiph#107
Fixes: xiph#108
(See also: mkxp-z/mkxp-z#200)
  • Loading branch information
sezero committed Jul 30, 2024
1 parent 18723c0 commit ce4f463
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@ else
DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
*-*-darwin*)
powerpc-*-darwin*)
DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
*-*-darwin*)
DEBUG="-DDARWIN -fno-common -Wall -g -O0 -fsigned-char"
CFLAGS="-DDARWIN -fno-common -Wall -g -O3 -ffast-math -fsigned-char"
PROFILE="-DDARWIN -fno-common -Wall -g -pg -O3 -ffast-math -fsigned-char";;
*-*-os2*)
# Use -W instead of -Wextra because gcc on OS/2 is an old version.
DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
Expand Down

0 comments on commit ce4f463

Please sign in to comment.