Skip to content

Commit

Permalink
fix: linux header include path
Browse files Browse the repository at this point in the history
  • Loading branch information
Notselwyn committed Sep 11, 2024
1 parent c430f4a commit 0a7cabc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CC = musl-gcc
# - ./include/libmnl: libmnl v1.0.5
# - ./include/libnftnl: libnftnl v1.2.6
# - ./include/linux-lts-6.1.72: linux v6.1.72
CFLAGS = -I./include -I./include/linux-lts-6.1.72 -Wall -Wno-deprecated-declarations
CFLAGS = -I./include -Wall -Wno-deprecated-declarations
#CFLAGS = -Wall -Wno-deprecated-declarations
#CFLAGS = -I/usr/include -I./include/linux-lts-6.1.72 -Wall -Wno-deprecated-declarations

Expand All @@ -28,6 +28,7 @@ _install_musl:
sudo apt-get install musl-tools libmnl-dev libnftnl-dev
ln -s /usr/include/libnftnl ./include/libnftnl
ln -s /usr/include/libmnl ./include/libmnl
ln -s /usr/include/linux ./include/linux
_compile_static:
$(CC) $(CFLAGS) $(SRC_FILES) -o $(OUT_NAME) -static $(LIBNFTNL_PATH) $(LIBMNL_PATH)
_strip_bin:
Expand Down

0 comments on commit 0a7cabc

Please sign in to comment.