Jim - you are correct in your assumptions - openslp can be cross-compiled
for 32-bit linux on 64-bit linux platforms in this manner. For a more
complete portability environment, you might also consider adding linux32 to
the front of your configure and make command lines:

$ linux32 ./configure.
$ linux32 ./make

This is a script that calls setarch with various architecture flags specific
to 32-bit linux. The primary value in using linux32 is that it creates an
environment where, if the build system (configure, make, etc.) attempts to
query the environment, it looks for all the world like a 32-bit linux
system.

 

John

 

From: Jim Marshall [mailto:jim.marsh...@wbemsolutions.com] 
Sent: Wednesday, October 17, 2012 2:54 PM
To: openslp-devel@lists.sourceforge.net
Subject: [Openslp-devel] Building 64bit or 32bit

 

I've been building OpenSLP 2.0 for 32 and 64 bit by rerunning configure. On
my system 64bit is the default so when I want to build 32bit I do

./configure CFLAGS=-m32 LDFLAGS=-m32 --prefix=<some dir>

This works and builds 32bit executable. 

My question is, is that the "correct" way to do it, or is there a way to run
make for 32bit and then 64bit that I am missing?

Jim

-- 

Jim Marshall
Sr. Software Engineer
 <http://ws-inc.com/> WS
 

<<image001.jpg>>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Openslp-devel mailing list
Openslp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openslp-devel

Reply via email to