First, get the source for http://web.mit.edu/network/pgp.html
Build rsaref
Add this to the makefile in the pgp/src directory:
mklinux:
$(MAKE) all CC=gcc LD=gcc CFLAGS="$(RSAINCDIR) -O6 -g3 -DUNIX -DIDEA32 -DHIGHFIRST -DPORTABLE"
Then, type "make mklinux" at your nearest prompt.
Took me hours to figure out... and I'm not sure why. :)
chilly@psu.edu
---
Here's how I built pgp 2.63a for use in the US.
Grabbed the 2.62 sources from MIT. Built the rsaref (/rsaref/install/unix).
Used the following CFLAGS:
CFLAGS = $(INCL) -O3 -mcpu=604 -fforce-addr -s -c -DPROTOTYPES=$(PROTOTYPES)
Grabbed the 2.63ia sources from The International PGP home page
Move the rsa stuff into your new pgp dir, and make the following mods to
pgp's makefile.
The rsa stuff in the makefile should look like:
# For a pure MPILIB version, uncomment the following lines
#RSALIBS =
#RSAOBJS = rsaglue1.o
# For an RSAREF version, uncomment the following lines
RSADIR = ../rsaref
RSALIBDIR = $(RSADIR)/install/unix
RSAINCDIR = -I$(RSADIR)/source -I$(RSADIR)/test $(USEMPILIB)
RSALIBS = $(RSALIBDIR)/rsaref.a
RSAOBJS = rsaglue2.o
# If you want to use MPILIB as a back end to RSAREF, uncomment this line:
#USEMPILIB = -DUSEMPILIB
And add the below the pgp/src/makefile
ppclinux:
$(MAKE) all CC=gcc LD=gcc \
CFLAGS="$(RSAINCDIR) -O3 -mcpu=604 -s -DUNIX \
-DLINUX -DIDEA32 -DPORTABLE -DMERRITT -DHIGHFIRST -DUSA"
Type make ppclinux and congrats. A bit more complex
than the other method, but you get the latest pre-PGP 5 release,
with pgp risc optimisations (-DMERRITT is supposed to be good
according to docs)..
7/23/97 antoine@eci.com
chilly@psu.edu, antoine@eci.com |