[mach] mach-o static builds busted

VERIFIED FIXED in mozilla1.4alpha

Status

--
blocker
VERIFIED FIXED
16 years ago
14 years ago

People

(Reporter: netscape, Assigned: netscape)

Tracking

Trunk
mozilla1.4alpha
PowerPC
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(4 attachments, 1 obsolete attachment)

The build fails complaining about object files having 'local relocation entries
in non-writable section (__TEXT,__text)'.  This is caused by linking in object
files which were not compiled with -fPIC.
Created attachment 115350 [details] [diff] [review]
Sprinkle FORCE_USE_PIC liberally
Attachment #115350 - Flags: review?(ccarlen)
Comment on attachment 115350 [details] [diff] [review]
Sprinkle FORCE_USE_PIC liberally

r=ccarlen

Is there a perf hit for using fPIC on PowerPC? I kinda doubt it. If there's any
OSX-specific doc on this issue that you read, I'd be curious.
Attachment #115350 - Flags: review?(ccarlen) → review+
Created attachment 115599 [details] [diff] [review]
Fix intree zlib static builds

Silly ordering issue though as the warning states, we may want to think about
using -bind_at_load as lazy loading could cause the wrong set of symbols to be
loaded.
Created attachment 115619 [details] [diff] [review]
fix viewer too
Attachment #115599 - Attachment is obsolete: true
Attachment #115619 - Flags: review?(bryner)

Comment 5

16 years ago
Comment on attachment 115619 [details] [diff] [review]
fix viewer too

conrad: yeah, there will be some perf hit.. but its probably not too noticable.
Attachment #115619 - Flags: review?(bryner) → review+
Patch has been checked in.
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.4alpha

Comment 7

16 years ago
verified
Status: RESOLVED → VERIFIED

Comment 8

16 years ago
I made several attempts to run a static build on the nightly build machine, by
adding the following options to mozconfig:
ac_add_options --enable-static
ac_add_options --disable-shared

... but never succeeded.
Log file will follow.

Comment 9

16 years ago
Created attachment 121035 [details] [diff] [review]
Static build failure log, part 1

Comment 10

16 years ago
Created attachment 121036 [details] [diff] [review]
Static build failure log, part 2
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.