[SPARC64] libpng10-1.0.18-1.fc3.src.rpm

"Christian Joensson" <[email protected]> Sat, 20 May 2006 08:52:33 +0200
Newsgroups gmane.linux.aurora.devel
Message-ID <[email protected]>
[Maybe a bit off topic here, let me know if I should drop this(these?)
thread(threads), for now, I hope you can accept the information herein
as memory support for me and others interested until the foot is set
down on what the Aurora project wants with sparc64 variants...]


well, libpng10 had the same hard coded issues that libpng have, so, a
simple fix, build sparc64 variants using CC='gcc -m64'

Attached are the spec file of the new modified
libpng10-1.0.18-1sparc.fc3.src.rpm and the CFLAGS patch.

-- 
Cheers,

/ChJ

_______________________________________________
Aurora-sparc-devel mailing list
[email protected]
http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-devel
Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html
libpng10.spec (application/octet-stream, 5.9 KB) - not displayed
libpng-1.0.18-cflags.patch (application/octet-stream, 1.4 KB)
--- libpng-1.0.18/Makefile.BAD	2006-05-17 23:51:54.000000000 +0200
+++ libpng-1.0.18/Makefile	2006-05-17 23:56:38.000000000 +0200
@@ -98,15 +98,15 @@
 	ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME)$(LINK_SUFFIX).so.$(PNGMAJ)
 
 $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
-	$(CC) -shared -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) \
+	$(CC) $(CFLAGS) -shared -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) \
 	-o $(LIBNAME).so.$(PNGVER) \
 	$(OBJSDLL)
 
 pngtest: pngtest.o $(LIBNAME)$(LINK_SUFFIX).so
-	$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+	$(CC) $(CFLAGS) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
 
 pngtest-static: pngtest.o libpng$(LINK_SUFFIX).a
-	$(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A)
+	$(CC) $(CFLAGS) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A)
 
 test: pngtest pngtest-static
 	@echo ""
@@ -179,14 +179,14 @@
 test-dd:
 	echo
 	echo Testing installed dynamic shared library in $(DL).
-	$(CC) -I$(DI) -I$(ZLIBINC) \
+	$(CC) $(CFLAGS) -I$(DI) -I$(ZLIBINC) \
 	   `$(BINPATH)/libpng10-config --cflags` pngtest.c \
 	   -L$(DL) -L$(ZLIBLIB) -W1, -rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \
 	   -o pngtestd `$(BINPATH)/libpng10-config --ldflags`
 	./pngtestd pngtest.png
 
 test-installed:
-	$(CC) -I$(ZLIBINC) \
+	$(CC) $(CFLAGS) -I$(ZLIBINC) \
 	   `$(BINPATH)/libpng10-config --cflags` pngtest.c \
 	   -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
 	   -o pngtesti `$(BINPATH)/libpng10-config --ldflags`