Skip to content

Commit 580e1f3

Browse files
committed
make: add static build
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
1 parent 4e44270 commit 580e1f3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Build binray
2424
run: make
2525

26+
- name: Build static binray
27+
run: make static
28+
2629
- name: Build library
2730
run: make shared
2831

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ all: $(TARGET_SRCS)
4040
$(CC) $(CFLAGS) $(INCLUDES) \
4141
$(TARGET_SRCS) -o $(TARGET)
4242

43+
static: CFLAGS += -static
44+
static: all
45+
4346
debug: CFLAGS += $(CFLAGS_DEBUG)
4447
debug: all
4548

0 commit comments

Comments
 (0)