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

snownews: fix build on darwin < 16 #26018

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barracuda156
Copy link
Contributor

Description

It fails to pass ldflag to legacy-support. Do it manually.

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 10.6
Xcode 3.2

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL in commit message?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

${exe}: ${objs}
@echo "Linking $@ ..."
- @${CC} ${ldflags} -o $@ $^ ${libs}
+ @${CC} ${ldflags} -o $@ $^ ${libs} -lMacportsLegacySupport
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to do this manually. It suggests that something else is wrong, for example that the LDFLAGS that MacPorts tells the port to use are not be getting used. That's what needs to be fixed, because it will fix not only this problem but also other problems associated with LDFLAGS not being used (non-default-arch builds failing, for example). See https://trac.macports.org/ticket/65427.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not link to legacysupport by default, yeah. Perhaps because it does not use standard ways to pass flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants