Bug 1796380 - Don't add -pie to LDFLAGS on mac. r=firefox-build-system-reviewers,sergesanspaille

It's the default and clang complains the argument is unused.

Differential Revision: https://phabricator.services.mozilla.com/D178733
This commit is contained in:
Mike Hommey 2023-05-26 08:53:41 +00:00
parent f87fbc0b9d
commit 1ccf25b93b

View File

@ -146,7 +146,9 @@ if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$DEVELOPER_OPTIONS" -a -z "$MOZ_PR
fi
if test "$GNU_CC$CLANG_CC"; then
MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"
if "${OS_TARGET}" != Darwin; then
MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"
fi
fi
AC_SUBST(MOZ_PROGRAM_LDFLAGS)