summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-08-10 21:17:51 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-08-10 21:17:51 +0000
commit724aa52bef7e62d3a1df341f6c34faffba98ca51 (patch)
treead403dbf83aec7e0d7ce7d2da5ade14be303ec64 /dev-libs/gf2x/files
parentMove from dev-perl to perl-core (diff)
downloadhistorical-724aa52bef7e62d3a1df341f6c34faffba98ca51.tar.gz
historical-724aa52bef7e62d3a1df341f6c34faffba98ca51.tar.bz2
historical-724aa52bef7e62d3a1df341f6c34faffba98ca51.zip
Initial import
Package-Manager: portage-2.2_rc36/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/gf2x/files')
-rw-r--r--dev-libs/gf2x/files/gf2x-0.3.1-shared.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/gf2x/files/gf2x-0.3.1-shared.patch b/dev-libs/gf2x/files/gf2x-0.3.1-shared.patch
new file mode 100644
index 000000000000..e2932be0fa0b
--- /dev/null
+++ b/dev-libs/gf2x/files/gf2x-0.3.1-shared.patch
@@ -0,0 +1,64 @@
+--- Makefile.orig 2009-08-10 21:37:55.000000000 +0100
++++ Makefile 2009-08-10 22:07:35.000000000 +0100
+@@ -1,14 +1,11 @@
+
+ # Sorry, this makefile is kind of ugly, so pending a choice for an
+ # appropriate building tool, we'll simply avoid make -j for this one.
+-.NOTPARALLEL:
++#.NOTPARALLEL:
+
+ # Default flags
+-CFLAGS:=-O2 -DNDEBUG
+-CXXFLAGS:=$(CFLAGS)
+-
+-ALWAYS_CFLAGS:=-std=c99 -g -W -Wall
+-ALWAYS_CXXFLAGS:=-g -W -Wall
++ALWAYS_CFLAGS:=-std=c99 -W -Wall -DNDEBUG
++ALWAYS_CXXFLAGS:=-W -Wall -DNDEBUG
+
+ # Start with defaults that should never be overridden
+ MY_CFLAGS=$(ALWAYS_CFLAGS)
+@@ -37,10 +34,12 @@
+ .c.o:
+ $(CC) $(MY_CFLAGS) $< -c -o $@
+
++.SUFFIXES: .lo
++.c.lo:
++ $(CC) $(MY_CFLAGS) -fPIC $< -c -o $@
++
+ ifeq ($(shell arch),i686)
+ w:=32
+-CFLAGS+=-msse2
+-CXXFLAGS+=-msse2
+ endif
+
+ ifeq ($(shell arch),x86_64)
+@@ -52,7 +51,7 @@
+
+ .PHONY: all tune1
+
+-all: tune1 libgf2x.a tunetoom
++all: tune1 libgf2x.a libgf2x.so tunetoom
+
+ LIBGF2X_FILES:=mul-toom.c mul-gf2x.c mulfft-bit.c
+
+@@ -60,6 +59,11 @@
+ rm -f $@
+ ar qcv $@ $^
+
++libgf2x.so: $(patsubst %.c,%.lo,$(LIBGF2X_FILES))
++ rm -f $@
++ $(CC) -shared $(LDFLAGS) -Wl,-soname,libgf2x.so.0 -o libgf2x.so.0 $^
++ ln -s libgf2x.so.0 libgf2x.so
++
+ gen_bb_mul_code: gen_bb_mul_code.c
+ $(CC) $(MY_CFLAGS) $< -o $@
+
+@@ -141,6 +145,7 @@
+ -rm -f bench update-thresholds tunetoom tunefft libgf2x.a
+ -rm -f check*.res factor
+ -rm -f *.o
++ -rm -f *.lo libgf2x.so libgf2x.so.0
+
+ gf2x.h: mul-inlines.c mul-small.c mul-basecase.c thresholds.h
+ mul-kara.o: gf2x.h thresholds.h