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