Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,15 @@ AM_CONDITIONAL([BUILD_KEYBOARD_INTERACTIVE],[test "x$ENABLED_KEYBOARD_INTERACTIV

AX_HARDEN_CC_COMPILER_FLAGS

dnl A test that is configured out compiles down to "return 77", the automake
dnl skip code, and so does the main() that forwards to it. Apple's linker folds
dnl the two identical bodies together, then writes LC_MAIN entryoff 0, so the
dnl binary starts executing at the Mach-O header and dies with SIGILL instead
dnl of skipping. Turn the folding off where the linker understands the flag;
dnl GNU ld rejects it and is unaffected.
AX_CHECK_LINK_FLAG([-Wl,-no_deduplicate],
[AM_LDFLAGS="$AM_LDFLAGS -Wl,-no_deduplicate"])

CREATE_HEX_VERSION
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])
Expand Down
Loading