소스 검색

Makefile: fix check framework compilation flags

Kosma Moczek 8 년 전
부모
커밋
7d6ff06722
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -6,7 +6,8 @@
 
 CFLAGS = -g -Wall -Wextra -Werror -std=c99
 CFLAGS += -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE
-LDLIBS = -lcheck
+CFLAGS += $(shell pkg-config --cflags check)
+LDLIBS += $(shell pkg-config --libs check)
 
 all: scan-build test example
 	@echo "+++ All good."""