Branch: Tag:


2015-07-23 20:23:45 by Jonas Walldén <>

Tweak OS X 64-bit compilation by not specifying old optimization flags
when the defaults are better (+3% on average on pike -x benchmark on
MBP Core i7).

Also avoid -read_only_relocs since it's not applicable on 64-bit ABI.

1899:    # -flat_namespace only needed for linking with libMallocDebug    # AC_SYS_COMPILER_FLAG(-flat_namespace, flat_namespace, LDFLAGS)    -  # Take care of warning when linking with GMP libraries +  # Take care of warning when linking with GMP libraries (not on 64-bit) +  if test "x$with_abi" != "x64"; then    AC_SYS_COMPILER_FLAG(-read_only_relocs warning, ro_relocs_warn, LDFLAGS) -  +  fi       # Tune based on processor family    case "`machine`" in    i486)    # Darwin x86 runs on Intel Core Solo/Duo (based on Pentium M) and newer -  +  if test "x$with_abi" != "x64"; then    AC_SYS_COMPILER_FLAG(-march=pentium-m, arch_pentium_m, OPTIMIZE)    AC_SYS_COMPILER_FLAG(-msse3, opt_sse3, OPTIMIZE)    AC_SYS_COMPILER_FLAG(-mfpmath=sse, opt_mfpmath_sse, OPTIMIZE) -  +  fi       # no-pic required for machine code to work    AC_SYS_COMPILER_FLAG(-mdynamic-no-pic, dynamicnopic, OSFLAGS)