[Botan-devel] Building for MIPS

Jack Lloyd lloyd at randombit.net
Mon Oct 22 23:45:52 EDT 2007


On Tue, Oct 23, 2007 at 03:10:14AM -0000, Meenal Verma wrote:
> (Sending in plaintext)Hi,These are the Makefile changes that I made

CXX = /usr/local/bin/mipseb-linux-g++ -I. -I/usr/local/mipseb-linux/include/c++/3.2 -I/usr/local/mipseb-linux/include/c++/3.2/backward -I/usr/local/mipseb-linux/include/c++/3.2/mips-linux-gnu -static -Wa,-non_shared -mips2 -mno-abicalls -mabi=32 -mtune=r6000 -msplit-addresses -Wl,--script=/usr/local/mipseb-linux/lib/ldscripts/mint.x -mips2 -Wa,-non_shared
#CXX           = /usr/local/bin/mipseb-linux-g++ -Wa,-non_shared -mabi=32
#LIB_OPT       = -O2 -finline-functions
#CHECK_OPT     = -O2
#MACH_OPT      = -mips2 -mtune=r8000 -msplit-addresses
#LANG_FLAGS    = -D_REENTRANT -ansi -Wno-long-long -fpermissive
#WARN_FLAGS    = -W -Wall
SO_OBJ_FLAGS  = -fPIC
SO_LINK_CMD   = $(CXX) -shared -fPIC -Wl,-soname,$(SONAME)
LINK_TO       = -lm -lpthread -lrt

I think -non_shared is likely to be incompatible with created shared
objects. If you need to use this (eg because the cross compiler
doesn't support shared libs), the best thing to do is run make clean
and then reconfigure the library, adding --disable-shared to the
command line for configure.pl

-Jack




More information about the botan-devel mailing list