Re: -mdynamic-no-pic on x86-32 vs 64
Re: -mdynamic-no-pic on x86-32 vs 64
- Subject: Re: -mdynamic-no-pic on x86-32 vs 64
- From: Joel Reymont <email@hidden>
- Date: Fri, 11 Dec 2009 17:26:34 +0000
On Dec 11, 2009, at 5:18 PM, Shantonu Sen wrote:
> Also, I'm not sure what "cross-compiling" you're referring to. Are you building this on non-Mac OS X?
By cross-compiling I mean using '-arch i386' since the default architecture on Snow Leopard is x86-64.
gcc-4.2 -arch i386 -o prvrsion.o -c -fvisibility=hidden -mdynamic-no-pic -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/Users/joelr/work/mozilla/static32/dist/include/nspr -I../../../../mozilla-central/nsprpub/pr/include -I../../../../mozilla-central/nsprpub/pr/include/private -I. ../../../../mozilla-central/nsprpub/pr/src/prvrsion.c
Yes, I know that -mdynamic-no-pic overrides -fPIC.
The full error is this:
gcc-4.2 -arch i386 -dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/libnspr4.dylib -headerpad_max_install_names -o libnspr4.dylib ./prvrsion.o io/./prfdcach.o io/./prmwait.o io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o linking/./prlink.o malloc/./prmalloc.o malloc/./prmem.o md/./prosdep.o memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o misc/./prnetdb.o misc/./prolock.o misc/./prrng.o misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o misc/./prtime.o pthreads/./ptsynch.o pthreads/./ptio.o pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./darwin.o md/unix/./os_Darwin.o -framework CoreServices -framework CoreFoundation
ld: absolute addressing (perhaps -mdynamic-no-pic) used in _libVersionPoint from ./prvrsion.o not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
collect2: ld returned 1 exit status
Thanks, Joel
---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden