Reenabled SSE on i386, compiling is fixed !

- Better pngquant-2.4.0_fix-Makefile.patch more close to upstream.
epel9
Sérgio Basto 10 years ago
parent 239d15b39e
commit 3fa98e166f

@ -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

@ -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@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@serjux.com> - 2.4.0.1-2
- Fixed dependency of libimagequant.so.0
- Minor fix on ln to %{libname}.so

Loading…
Cancel
Save