Skip to content

Commit

Permalink
Makefiles: do not override PKG_CONFIG variable if it is set
Browse files Browse the repository at this point in the history
in nixpkgs we set the PKG_CONFIG env var to the correct pkg-config and
i was getting 'pkg-config: No such file or directory'

https://makefiletutorial.com/
  • Loading branch information
Artturin committed Aug 24, 2022
1 parent 536bc4c commit fe79618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lgi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LUA_VERSION=5.1
LUA_LIBDIR = $(PREFIX)/lib/lua/$(LUA_VERSION)
LUA_SHAREDIR = $(PREFIX)/share/lua/$(LUA_VERSION)

PKG_CONFIG = pkg-config
PKG_CONFIG ?= pkg-config
GINAME = gobject-introspection-1.0
PKGS = $(GINAME) gmodule-2.0 libffi
VERSION_FILE = version.lua
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endif
PKGS = gio-2.0 cairo cairo-gobject gobject-introspection-1.0 gmodule-2.0 libffi
LUA = lua
LUA_LIB = -llua
PKG_CONFIG = pkg-config
PKG_CONFIG ?= pkg-config

ifndef CFLAGS
ifndef COPTFLAGS
Expand Down

0 comments on commit fe79618

Please sign in to comment.