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

utils/{gr,hgr}-utils/Makefile: Use pkg-config for compile/link flags #21

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

Conversation

0cjs
Copy link

@0cjs 0cjs commented Jun 24, 2023

Calls to $(CC) assumed that png.h, -lpng etc. were all in the default paths used by the compiler. However, this is not the case on some systems, such as MacOS using the MacPorts package system.

Add calls to pkg-config to add the appropriate paths to CFLAGS if necessary, and introduce LDFLAGS for linker library paths.

This assumes that pkg-config is available; it usually is (particularly on systems using GCC), but further work may be required if this is required to run on systems where it's not.

This also assumes Gnu Make; again further work may be required if this needs to be made compatible with Berkeley Make.

This has been tested on Debian 11 and on MacOS 10.14.6 with MacPorts 2.8.1

Calls to $(CC) assumed that png.h, -lpng etc. were all in the default paths
used by the compiler. However, this is not the case on some systems, such
as MacOS using the MacPorts package system.

Add calls to pkg-config to add the appropriate paths to CFLAGS if
necessary, and introduce LDFLAGS for linker library paths.

This assumes that pkg-config is available; it usually is (particularly on
systems using GCC), but further work may be required if this is required to
run on systems where it's not.

This also assumes Gnu Make; again further work may be required if this
needs to be made compatible with Berkeley Make.

This has been tested on Debian 11 and on MacOS 10.14.6 with MacPorts 2.8.1
@0cjs
Copy link
Author

0cjs commented Jul 26, 2023

Just checking in to see if this can get merged.

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.

1 participant