[vlc-devel] [PATCH] contrib/ass: use correct ASFLAGS for yasm on Solaris

Sean McGovern gseanmcg at gmail.com
Fri Jul 3 01:02:17 CEST 2015


---
 contrib/src/ass/ass-solaris.patch |   11 +++++++++++
 contrib/src/ass/rules.mak         |    2 ++
 2 files changed, 13 insertions(+)
 create mode 100644 contrib/src/ass/ass-solaris.patch

diff --git a/contrib/src/ass/ass-solaris.patch b/contrib/src/ass/ass-solaris.patch
new file mode 100644
index 0000000..4e01b84
--- /dev/null
+++ b/contrib/src/ass/ass-solaris.patch
@@ -0,0 +1,11 @@
+--- libass/configure.ac.ORIG	Wed Jan  7 14:00:15 2015
++++ libass/configure.ac	Thu Jul  2 18:57:07 2015
+@@ -70,7 +70,7 @@
+     AS_CASE([$host],
+         [*darwin*], [
+             ASFLAGS="$ASFLAGS -f macho$BITS -DPREFIX -DHAVE_ALIGNED_STACK=1" ],
+-        [*linux*|*dragonfly*|*bsd*], [
++        [*linux*|*dragonfly*|*bsd*|*solaris*], [
+             ASFLAGS="$ASFLAGS -f elf -DHAVE_ALIGNED_STACK=1" ],
+         [*cygwin*|*mingw*], [
+             ASFLAGS="$ASFLAGS -f win$BITS"
diff --git a/contrib/src/ass/rules.mak b/contrib/src/ass/rules.mak
index eca8e1d..18280aa 100644
--- a/contrib/src/ass/rules.mak
+++ b/contrib/src/ass/rules.mak
@@ -33,6 +33,7 @@ $(TARBALLS)/libass-$(ASS_VERSION).tar.gz:
 libass: libass-$(ASS_VERSION).tar.gz .sum-ass
 	$(UNPACK)
 	$(APPLY) $(SRC)/ass/ass-macosx.patch
+	$(APPLY) $(SRC)/ass/ass-solaris.patch
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
 
@@ -53,6 +54,7 @@ ASS_CONF += --disable-harfbuzz
 endif
 
 .ass: libass
+	$(RECONF)
 	cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF) $(ASS_CONF)
 	cd $< && $(MAKE) install
 	touch $@
-- 
1.7.9.2




More information about the vlc-devel mailing list