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

Enable smart linking #1252

Merged

Conversation

someperson
Copy link
Contributor

This change is kind of necessary for the Cocoa build unless certain references to the macOS framework headers are removed from transgui. Otherwise, there is a dependency on Carbon that cannot be resolved in the x86_64 macOS world, causing problems during compilation. See https://wiki.freepascal.org/univint

These flags enable smart linking, which causes anything that isn't used to be dropped at compile-time. Importantly, that includes the Carbon dependency when compiling for Cocoa.

I don't know how to figure out exactly what would need to be removed to get rid of the Carbon dependency, so this was the easier solution. Since it affects the other builds, at the request of @PeterDaveHello, I have separated it into its own pull request. In theory, this shouldn't break anything, but it obviously requires testing.

PeterDaveHello
PeterDaveHello previously approved these changes Aug 31, 2019
@PeterDaveHello
Copy link
Member

@someperson would you like to bind the commit author with your GitHub account? Like change the email of the commit author or add that email in your GitHub account. I can directly merge it if you don't mind, but I don't want to lose anyone's credit in accident ;)

@someperson
Copy link
Contributor Author

@PeterDaveHello Thanks for the heads-up. I just pushed a corrected commit with the right information.

@PeterDaveHello
Copy link
Member

@someperson nice!

@PeterDaveHello
Copy link
Member

I've tested on Ubuntu x64 and everything looks fine, now going to test on Windows and Linux x86, armv6/7, and then we can merge this.

@PeterDaveHello PeterDaveHello merged commit 2aa9adc into transmission-remote-gui:master Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants