Skip to content

Commit

Permalink
Fixed compilation of MPlayer for OSX.
Browse files Browse the repository at this point in the history
Forcing the sysroot and syslibroot in the compiler and linker flags broke autodetection
for several libraries, which in turn broke compilation of mplayer.c.
  • Loading branch information
Raptor399 committed Apr 9, 2012
1 parent aa11ad3 commit 052cc2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/build-pms-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1213,11 +1213,11 @@ build_mplayer() {

if is_osx; then
# OSX
set_flags

# Extra flags for compiling mplayer
export CFLAGS="-O4 -fomit-frame-pointer -pipe $CFLAGS"
export CXXFLAGS="-O4 -fomit-frame-pointer -pipe $CXXFLAGS"
# Flags for compiling mplayer
export CFLAGS="-O4 -fomit-frame-pointer -pipe -mmacosx-version-min=${OSX_VERSION} -arch $ARCHITECTURE -I$TARGET/include"
export CXXFLAGS="-O4 -fomit-frame-pointer -pipe mmacosx-version-min=${OSX_VERSION} -arch $ARCHITECTURE -I$TARGET/include"
export LDFLAGS="-mmacosx-version-min=${OSX_VERSION} -arch $ARCHITECTURE -L$TARGET/lib"

# /usr/bin/gcc gives compile errors for MPlayer on OSX Lion.
# See https://svn.macports.org/ticket/30279
Expand Down

0 comments on commit 052cc2c

Please sign in to comment.