nomexous
August 28th, 2008, 07:58 PM
I'm writing a program on my 64-bit machine which is intended to be compiled and copied over to a 32 bit machine. (Copying over the source code and compiling it on the 32-bit machine is not an option.) In the Makefile, I have a "32" section which adds a -m32 flag to g++'s compile line.
E.g.:32: this.o that.o
g++ -m32 this.o that.o -o binary
I then run "make 32" which builds the 32-bit version which I will copy over. During compilation, g++ will search for the 32-bit libraries to link. Using getlibs, I can satisfy the commonly used 32-bit dependencies (libcurl and libxml2) but run into problems with a package that I needed to compile. I didn't install libconfig from the repositories. Instead, I downloaded the source, ./configure-ed, make-ed, and sudo make install-ed.
Of course, this only got me the 64-bit library. What I need is to get the library in 32-bit (without overwriting the 64-bit version) so I can properly do a "make 32". Is there a way to do this during the ./configure stage of building libconfig? Like "./configure -32bit"?
E.g.:32: this.o that.o
g++ -m32 this.o that.o -o binary
I then run "make 32" which builds the 32-bit version which I will copy over. During compilation, g++ will search for the 32-bit libraries to link. Using getlibs, I can satisfy the commonly used 32-bit dependencies (libcurl and libxml2) but run into problems with a package that I needed to compile. I didn't install libconfig from the repositories. Instead, I downloaded the source, ./configure-ed, make-ed, and sudo make install-ed.
Of course, this only got me the 64-bit library. What I need is to get the library in 32-bit (without overwriting the 64-bit version) so I can properly do a "make 32". Is there a way to do this during the ./configure stage of building libconfig? Like "./configure -32bit"?