Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building on modern MSYS2 #13

Open
wants to merge 13 commits into
base: gnustep_testplant_branch
Choose a base branch
from

Conversation

qmfrederik
Copy link

This PR:

  • Gets the Eggplant fork of libs-gui running on modern MSYS2, by cherry-picking a number of commits off the main libs-gui branch
  • Ensures compatibility with both Eggplant's fork of libs-base and libs-main 1.29
  • Adds CI to ensure the code compiles correctly

qmfrederik and others added 13 commits December 21, 2023 20:32
	* Source/NSSavePanel.m: Fix return type of sorting function.
…nerating COFF files.

See https://reviews.llvm.org/D75989 and https://maskray.me/blog/2021-04-25-weak-symbol

This would lead to linker errors like this:

```
C:/tools/msys64/ucrt64/bin/ld: obj/libgnustep-gui.obj/NSBitmapImageRep+GIF.m.o:NSBitmapImageRep+G:(.rdata+0x418): multiple definition of `.weak.__objc_class_ref_NSString.default..objc_sel_namealloc'; obj/libgnustep-gui.obj/NSAttributedString.m.o:NSAttributedString:(.rdata+0xc38): first defined here
C:/tools/msys64/ucrt64/bin/ld: obj/libgnustep-gui.obj/NSBitmapImageRep+GIF.m.o:NSBitmapImageRep+G:(.rdata+0x508): multiple definition of `.weak.__objc_class_ref_NSNumber.default..objc_sel_namealloc'; obj/libgnustep-gui.obj/NSAttributedString.m.o:NSAttributedString:(.rdata+0xc20): first defined here
C:/tools/msys64/ucrt64/bin/ld: obj/libgnustep-gui.obj/NSBitmapImageRep+ICNS.m.o:NSBitmapImageRep+I:(.rdata+0x400): multiple definition of `.weak.__objc_class_ref_NSData.default..objc_sel_namealloc'; obj/libgnustep-gui.obj/NSBitmapImageRep+GIF.m.o:NSBitmapImageRep+G:(.rdata+0x4f0): first defined here
```
…SIArrayItem and GSIArray. This issue wasn't caught by CI since gui was not recompiled after base was altered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants