Blame SOURCES/libtommath-makefile.patch

fe3e34
--- libtommath-0.41.orig/makefile.shared	2007-03-10 16:45:11.000000000 -0700
fe3e34
+++ libtommath-0.41/makefile.shared	2007-06-27 22:07:28.000000000 -0600
fe3e34
@@ -10,13 +10,15 @@
fe3e34
 ifndef IGNORE_SPEED
fe3e34
 
fe3e34
 #for speed 
fe3e34
-CFLAGS += -O3 -funroll-loops
fe3e34
+# commented out for building in Fedora
fe3e34
+#CFLAGS += -O3 -funroll-loops
fe3e34
 
fe3e34
 #for size 
fe3e34
 #CFLAGS += -Os
fe3e34
 
fe3e34
 #x86 optimizations [should be valid for any GCC install though]
fe3e34
-CFLAGS  += -fomit-frame-pointer
fe3e34
+# commented out for rpm building in Fedora
fe3e34
+#CFLAGS  += -fomit-frame-pointer
fe3e34
 
fe3e34
 endif
fe3e34
 
fe3e34
@@ -48,8 +50,14 @@
fe3e34
 #INCPATH-The directory to install the header files for libtommath.
fe3e34
 #DATAPATH-The directory to install the pdf docs.
fe3e34
 DESTDIR=
fe3e34
-LIBPATH=/usr/lib
fe3e34
-INCPATH=/usr/include
fe3e34
+
fe3e34
+ifndef LIBPATH
fe3e34
+   LIBPATH=/usr/lib
fe3e34
+endif
fe3e34
+
fe3e34
+ifndef INCPATH
fe3e34
+   INCPATH=/usr/include
fe3e34
+endif
fe3e34
 DATAPATH=/usr/share/doc/libtommath/pdf
fe3e34
 
fe3e34
 OBJECTS=bncore.o bn_mp_init.o bn_mp_clear.o bn_mp_exch.o bn_mp_grow.o bn_mp_shrink.o \