[Bug 37540] Multiple games and applications wrapped with Enigma v4 and GG DRM schemes crash on startup (incompatible with use of position independent code (PIC) in Wine dlls)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Feb 4 08:32:06 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=37540

--- Comment #19 from Michael Weiser <michael at weiser.dinsnail.net> ---
Created attachment 53574
  --> https://bugs.winehq.org/attachment.cgi?id=53574
Fully switch to no-PIC on Darwin/OS X


Looking at Austin's "switch to -fno-PIC" patch again I realize that the
suppress read only relocs workaround is in there already but does not seem to
carry far enough into all components of the build system.

One problem is that LIBWINE_LDFLAGS is set to "-multiply_defined suppress
-read_only_relocs suppress" in the OS X host_os case but overwritten to
"-dynamic ..." soon after.

Another seems to be that winegcc does not add "-read_only_relocs suppress" to
the linker flags.

The attached patch fixes those problems and also makes wine compile cleanly
into a no-PIC version that's able to run VCDS.

Due to conflicts some part of the patch concerning android and other platforms
were rejected and are now missing from my patch. Should I rebase fully or can
one of you have a look at it?

Thanks!
Michael

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list