Makefile handles libpipewire
This commit is contained in:
parent
426b2765f6
commit
19403f79ab
2 changed files with 30 additions and 8 deletions
27
config.mk
27
config.mk
|
|
@ -1,4 +1,23 @@
|
|||
# === C Compiler+Linker ===
|
||||
LD = ld
|
||||
CC = gcc
|
||||
CFLAGS =
|
||||
# === C Compiler COnfiguration ===
|
||||
COMPILER := gcc
|
||||
CFLAGS :=
|
||||
LDFLAGS :=
|
||||
|
||||
# === Nix Mutations ===
|
||||
ifdef NIX_PATH
|
||||
|
||||
ifdef NIX_CC
|
||||
# TODO: will using the Nix gcc-wrapper break Bear?
|
||||
override COMPILER := $(NIX_CC)/bin/gcc
|
||||
endif # NIX_CC
|
||||
|
||||
# flake.nix adds NIX_CFLAGS_COMPILER/DORNE_LDFLAGS to env
|
||||
CFLAGS += $(NIX_CFLAGS_COMPILE)
|
||||
LDFLAGS += $(DORNE_LDFLAGS)
|
||||
|
||||
endif # NIX_PATH
|
||||
|
||||
|
||||
# C Compiler+Linker Commands
|
||||
CC = $$([ -x "$$(command -v bear)" ] && echo 'bear -- ') $(COMPILER)
|
||||
LD = $(COMPILER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue