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

Linux build clean up #70

Merged
merged 3 commits into from Apr 29, 2014
Merged

Linux build clean up #70

merged 3 commits into from Apr 29, 2014

Conversation

vapier
Copy link
Contributor

@vapier vapier commented Apr 29, 2014

No description provided.

Rather than hardcode `pkg-config`, allow people to set PKG_CONFIG to
point to a version customized for their build.
The standard variable for adding -l flags is LDLIBS, not LIBS.
The default Makefile rules (which this code already relies on)
will use that when linking.

This also fixes a problem where we do not want to list -l flags
in the dependency of make targets.  When you do that, make will
do a file search in /lib and /usr/lib (hardcoded) and expand the
path to those absolute files.  This breaks when you try to cross-
compile miniupnpd for other platforms.
The standard variable for preprocessor flags (e.g. -I and -D) is
CPPFLAGS.  The default Makefile rules already use this variable
when compiling code, so we only need to convert the name.
miniupnp added a commit that referenced this pull request Apr 29, 2014
@miniupnp miniupnp merged commit b469fdf into miniupnp:master Apr 29, 2014
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