The very essence of oopsie - corrected cross-platform thingies.
This commit is contained in:
parent
504503cafe
commit
e300f092fa
|
@ -114,9 +114,9 @@ define get-binary-sources
|
|||
-printf "%P\n" | sort))
|
||||
|
||||
# get the flags
|
||||
CFLAGS_$1 := $(CFLAGS) $(shell pkg-config $(LIBS_$1) --cflags 2>/dev/null) \
|
||||
CFLAGS_$1 := $(CFLAGS) $(shell $(PKGCONFIG) $(LIBS_$1) --cflags 2>/dev/null) \
|
||||
-D BIN="$1$(if $(FOR_WINDOWS),.exe)"
|
||||
LDFLAGS_$1 := $(LDFLAGS) $(shell pkg-config $(LIBS_$1) --libs 2>/dev/null)
|
||||
LDFLAGS_$1 := $(LDFLAGS) $(shell $(PKGCONFIG) $(LIBS_$1) --libs 2>/dev/null)
|
||||
endef
|
||||
$(foreach bin,$(BINARIES), \
|
||||
$(eval $(call get-binary-libs,$(bin))))
|
||||
|
|
Reference in New Issue