summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2023-10-25 09:59:06 -0500
committertrav90 <travawine@palemoon.org>2023-10-27 10:15:10 -0500
commit9d333be11b988fc4f42d9ba3e71c3df32f70b7b7 (patch)
treeaced8179fd1da85cd2887ac73c2190d71486a74f /media
parentaff6fbf36c304f98af18412c73be723592a55c96 (diff)
downloaduxp-9d333be11b988fc4f42d9ba3e71c3df32f70b7b7.tar.gz
Issue #2317 - Part 7 - Don't use -ffreestanding flag when building with clang
This was added by Mozilla as a workaround for an automated build system (one that they no longer use) for building on Linux with clang (which is not our target compiler for that platform). No need for us to keep this workaround.
Diffstat (limited to 'media')
-rw-r--r--media/ffvpx/ffvpxcommon.mozbuild2
-rw-r--r--media/ffvpx/libavutil_visibility.h9
2 files changed, 0 insertions, 11 deletions
diff --git a/media/ffvpx/ffvpxcommon.mozbuild b/media/ffvpx/ffvpxcommon.mozbuild
index edadc4a23e..32e6b42f0f 100644
--- a/media/ffvpx/ffvpxcommon.mozbuild
+++ b/media/ffvpx/ffvpxcommon.mozbuild
@@ -50,8 +50,6 @@ if CONFIG['GNU_CC']:
'-Wno-incompatible-pointer-types-discards-qualifiers',
'-Wno-string-conversion',
'-Wno-visibility',
- # Workaround for https://bugs.llvm.org/show_bug.cgi?id=26828#c4 :
- '-ffreestanding',
]
else:
CFLAGS += [
diff --git a/media/ffvpx/libavutil_visibility.h b/media/ffvpx/libavutil_visibility.h
index a03c89cffe..884a4b0f4e 100644
--- a/media/ffvpx/libavutil_visibility.h
+++ b/media/ffvpx/libavutil_visibility.h
@@ -8,15 +8,6 @@
#ifndef MOZILLA_AVUTIL_VISIBILITY_H
#define MOZILLA_AVUTIL_VISIBILITY_H
-// We need to preemptively include <stdlib.h> before anyone[1] has a chance
-// to include <limits.h>. We do this to avoid a Linux clang build error, in
-// -ffreestanding mode, which happens when limits.h defines MB_LEN_MAX to some
-// value that is different from what stdlib.h expects. If we include stdlib.h
-// before limits.h, then they don't get a chance to interact badly.
-//
-// [1] (e.g. libavutil/common.h, which is indirectly included by log.h below.)
-#include <stdlib.h>
-
#pragma GCC visibility push(default)
#include "libavutil/cpu.h"