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

Fix the order of flags when including libpng. #94

Closed
wants to merge 1 commit into from

Conversation

yenatch
Copy link
Contributor

@yenatch yenatch commented Sep 13, 2016

redo of #90's 90eea80

If libpng is included first, gcc will ignore it, because it hasn't been referenced yet.

@@ -1,7 +1,8 @@
PKG_CONFIG = pkg-config
WARNFLAGS = -Wall -Werror=implicit
PNGFLAGS != ${PKG_CONFIG} --cflags libpng
REALCFLAGS = ${CFLAGS} ${WARNFLAGS} ${PNGFLAGS} -Iinclude -g \
Copy link
Contributor

Choose a reason for hiding this comment

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

Broke the build. PNGFLAGS is needed for *.o, not the final executable.

@bentley
Copy link
Contributor

bentley commented Oct 12, 2016

95cd960 switches the order around without fiddling with PNG flags. Does it work?

@bentley bentley closed this Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants