Jump to content

compile 32-bit .so on 64-bit centOS


Recommended Posts

I am trying to compile a 32-bit DSO on a 64-bit machine. I've hacked the hcustom script with the following:

else if ( $?AMD64 ) then

set SYSTEMDEFS = "-m32 -fPIC"

set OSLFLAGS = "-m32"

works niceley on a machine at work. Now, I try and compile on my home machine.

I had to add a -I/32_bit/usr/include/ to the compile line, and now the linker chokes:

/usr/bin/ld: crti.o: No such file: No such file or directory

and locate crti.o gives 2 results:

/32_bit/usr/lib/crti.o

/usr/lib64/crti.o

I have tried adding -L /32_bit/usr/lib/ to the compile line, no dice. same error.

any ideas?

Edited by ivan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...