Opened 3 weeks ago

#6914 new defect

Vorbis lib build fail on MacOS [ invalid flag -force_cpusubtype_ALL ]

Reported by: GeorgeVl Owned by:
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description

Relating to this issue: https://gitlab.xiph.org/xiph/vorbis/-/issues/2348

The tar file comes with issues trying to build with latest Xcode.

What I did was to add the following to libraries/osx/build-osx-libs.sh

mkdir -p vorbis
pushd vorbis > /dev/null

if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$LIB_VERSION" ]]
then
  INSTALL_DIR="$(pwd)"

  rm -f .already-built
  download_lib $LIB_URL $LIB_ARCHIVE

  rm -rf $LIB_DIRECTORY include lib share
  tar -xf $LIB_ARCHIVE
  grep -ilr ' -force_cpusubtype_ALL' * | xargs -I@ sed -i '' 's/ -force_cpusubtype_ALL//g' @
  pushd $LIB_DIRECTORY

Which removes the invalid flag in my environment at least and moves on with the shell script.

Change History (0)

Note: See TracTickets for help on using tickets.