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