diff options
-rw-r--r-- | www/chromium/Makefile | 7 | ||||
-rw-r--r-- | www/chromium/files/extra-patch-fixup-ffmpeg | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 7afdd58a1d33..81bd9128424a 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -165,6 +165,13 @@ GYP_DEFINES+= disable_sse2=1 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libusb-pc .endif +# pointed out by "Tomek" on freebsd-chromium@ +.if !exists(/usr/lib/libexecinfo.so) +CFLAGS+= -fno-omit-frame-pointer +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-fixup-ffmpeg +PORTREVISION= 1 +.endif + .if ${PORT_OPTIONS:MTEST} .include "Makefile.tests" ALL_TARGET+= ${TEST_TARGETS} diff --git a/www/chromium/files/extra-patch-fixup-ffmpeg b/www/chromium/files/extra-patch-fixup-ffmpeg new file mode 100644 index 000000000000..a9d61b97b76b --- /dev/null +++ b/www/chromium/files/extra-patch-fixup-ffmpeg @@ -0,0 +1,18 @@ +--- third_party/ffmpeg/ffmpeg.gyp.orig 2014-10-27 20:27:40.000000000 +0100 ++++ third_party/ffmpeg/ffmpeg.gyp 2014-11-06 22:53:10.000000000 +0100 +@@ -213,6 +213,15 @@ + 'cflags!': [ + '-fno-omit-frame-pointer', + ], ++ # "Tomek" from freebsd-chromium@ figured this out, rene is ++ # puzzled why this is needed. Fixes runtime on FreeBSD < 10 ++ 'cflags_c': [ ++ '-fomit-frame-pointer', ++ ], ++ 'cflags_cc': [ ++ '-fomit-frame-pointer', ++ ], ++ # back to upstream code + 'debug_extra_cflags!': [ + '-fno-omit-frame-pointer', + ], |