sergiomb pushed to pngquant (f21). "Reenabled SSE on i386, compiling is fixed ! (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 19 03:12:50 UTC 2015


>From 3fa98e166f7f07692b9c4e371e75711c1d929699 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9rgio=20Basto?= <sergio at serjux.com>
Date: Sun, 19 Apr 2015 03:47:49 +0100
Subject: Reenabled SSE on i386, compiling is fixed !

- Better pngquant-2.4.0_fix-Makefile.patch more close to upstream.

diff --git a/pngquant-2.4.0_fix-Makefile.patch b/pngquant-2.4.0_fix-Makefile.patch
index 770cec0..a29085f 100644
--- a/pngquant-2.4.0_fix-Makefile.patch
+++ b/pngquant-2.4.0_fix-Makefile.patch
@@ -1,6 +1,6 @@
 --- pngquant-2.4.0.1.orig/lib/Makefile	2015-04-11 23:24:38.000000000 +0100
-+++ pngquant-2.4.0.1/lib/Makefile	2015-04-19 02:24:14.987943234 +0100
-@@ -1,14 +1,14 @@
++++ pngquant-2.4.0.1/lib/Makefile	2015-04-19 03:35:15.687199897 +0100
+@@ -1,7 +1,8 @@
  -include config.mk
  
  STATICLIB=libimagequant.a
@@ -10,24 +10,12 @@
  
  DLL=libimagequant.dll
  DLLIMP=libimagequant_dll.a
- DLLDEF=libimagequant_dll.def
+@@ -36,7 +37,8 @@ $(SHAREDOBJS):
+ 	$(CC) -fPIC $(CFLAGS) -c $(@:.lo=.c) -o $@
  
- OBJS = pam.o mediancut.o blur.o mempool.o viter.o nearest.o libimagequant.o
--SHAREDOBJS = $(subst .o,.lo,$(OBJS))
- 
- BUILD_CONFIGURATION="$(CC) $(CFLAGS) $(LDFLAGS)"
- 
-@@ -32,11 +32,9 @@ $(DLL) $(DLLIMP): $(OBJS)
- $(STATICLIB): $(OBJS)
- 	$(AR) $(ARFLAGS) $@ $^
- 
--$(SHAREDOBJS):
--	$(CC) -fPIC $(CFLAGS) -c $(@:.lo=.c) -o $@
--
--$(SHAREDLIB): $(SHAREDOBJS)
+ $(SHAREDLIB): $(SHAREDOBJS)
 -	$(CC) -shared -o $@ $^ $(LDFLAGS)
-+$(SHAREDLIB): $(OBJS)
-+	$(CC) -shared -Wl,-soname,$(SHAREDLIB).$(SOVER) $(CFLAGS) $(OBJS) -o $(SHAREDLIB).$(SOVER)
++	$(CC) -shared -Wl,-soname,$(SHAREDLIB).$(SOVER) -o $(SHAREDLIB).$(SOVER) $^ $(LDFLAGS)
 +	ln -fs $(SHAREDLIB).$(SOVER) $(SHAREDLIB)
  
  $(OBJS): $(wildcard *.h) config.mk
diff --git a/pngquant.spec b/pngquant.spec
index b0aab29..b598a5c 100644
--- a/pngquant.spec
+++ b/pngquant.spec
@@ -2,7 +2,7 @@
 
 Name:       pngquant
 Version:    2.4.0.1
-Release:    2%{?dist}
+Release:    3%{?dist}
 Summary:    PNG quantization tool for reducing image file size
 %{?el5:Group:   Applications/Multimedia}
 
@@ -67,9 +67,6 @@ rm lib/configure
 %configure || :
 
 ./configure --prefix=%{_prefix} --enable-debug \
-%ifarch %{ix86}
-  --disable-sse
-%endif
 
 make %{?_smp_mflags} PREFIX=%{_prefix}
 
@@ -125,6 +122,10 @@ install -Dpm0644 pngquant.1 %{buildroot}/%{_mandir}/man1/pngquant.1
 
 
 %changelog
+* Sun Apr 19 2015 Sérgio Basto <sergio at serjux.com> - 2.4.0.1-3
+- Reenabled SSE on i386, compiling is fixed !
+- Better pngquant-2.4.0_fix-Makefile.patch more close to upstream.
+
 * Sun Apr 19 2015 Sérgio Basto <sergio at serjux.com> - 2.4.0.1-2
 - Fixed dependency of libimagequant.so.0
 - Minor fix on ln to %{libname}.so
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pngquant.git/commit/?h=f21&id=3fa98e166f7f07692b9c4e371e75711c1d929699


More information about the scm-commits mailing list