https://bugs.winehq.org/show_bug.cgi?id=37540
--- Comment #19 from Michael Weiser michael@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