summaryrefslogtreecommitdiff
path: root/multimedia/handbrake/files/patch-make_variant_freebsd.defs
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/handbrake/files/patch-make_variant_freebsd.defs')
-rw-r--r--multimedia/handbrake/files/patch-make_variant_freebsd.defs8
1 files changed, 8 insertions, 0 deletions
diff --git a/multimedia/handbrake/files/patch-make_variant_freebsd.defs b/multimedia/handbrake/files/patch-make_variant_freebsd.defs
new file mode 100644
index 000000000000..f46dbb9e1abb
--- /dev/null
+++ b/multimedia/handbrake/files/patch-make_variant_freebsd.defs
@@ -0,0 +1,8 @@
+--- make/variant/freebsd.defs.orig 2019-02-22 17:23:51.000000000 +0100
++++ make/variant/freebsd.defs 2019-11-17 20:08:28.821497000 +0100
+@@ -15,4 +15,4 @@
+
+ GCC.MAJOR_VERSION = $(shell $(GCC.gcc) -dumpversion | cut -f 1 -d .)
+ GCC.LDFLAGS = -lc++ -Wl,-rpath=$(LOCALBASE)/lib/gcc$(GCC.MAJOR_VERSION)
+-LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(GCC.LDFLAGS), )
++LDFLAGS += $(if $(findstring gcc, $(GCC.gcc)), $(if $(findstring x86, $(GCC.archs)), $(GCC.LDFLAGS), ), )