[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compile source package optimized for ultrasparc?



On Sat, Feb 01, 2003 at 10:54:24AM -0800, Nate Campi wrote:
> I want to compile libssl with compiler optimizations for ultrasparc, on
> my woody boxes.
> 
> It is easy to run something like: "apt-get -b source libssl0.9.6" but
> how do I get the compiler options in?
> 
> I tried just downloading first, then manually adding "-mv8" to the
> CFLAGS in the Makfile(s) but it doesn't keep them. How can I do this?

I regularly patch openssl for my supersparc. I patch the main
Configure script, editing the line that starts with "debian-sparc"
to add -mv8 -msupersparc to the gcc options.

-"debian-sparc","gcc:-DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:-ldl:BN_LLONG RC4_CHAR DES_UNROLL BF_PTR::::::::::dlfcn:linux-shared:-fPIC",
+"debian-sparc","gcc:-mv8 -msupersparc -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT:-ldl:BN_LLONG RC4_CHAR DES_UNROLL BF_PTR::::::::::dlfcn:linux-shared:-fPIC",

The thing I would like to know how to automate is downloading + patching
+building+installing openssl whenever there is a new release. As it stands
a new release from the maintainer upgrades over mine, and then I play catchup
once I notice the change (usually because ssh and https are sluggish).

-- 
-- Nicolas Dade    http://nsd.dyndns.org/



Reply to: