Skip to content

Commit

Permalink
Switch GNU makefile to pkgconf to lookup libbsd.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Mar 29, 2024
1 parent 2d0ea82 commit 0b145a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Install packages
run: sudo apt-get -y install libbsd-dev
run: sudo apt-get -y install libbsd-dev pkgconf
- name: Checkout sources
uses: actions/checkout@v3
- name: Make build
Expand Down
8 changes: 3 additions & 5 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
CFLAGS= -D_DEFAULT_SOURCE -D_GNU_SOURCE \
-DLIBBSD_OVERLAY -isystem /usr/include/bsd \
-isystem /usr/local/include/bsd \
-Wall
LDFLAGS= -lbsd
CFLAGS+= -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall \
$(shell pkgconf --cflags libbsd-overlay)
LDFLAGS+= $(shell pkgconf --libs libbsd-overlay)
BINDIR?= /usr/local/bin
MANDIR?= /usr/local/man/man

Expand Down

0 comments on commit 0b145a0

Please sign in to comment.