Skip to content

Commit

Permalink
Support build criu with static linked executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingjun-cg committed Sep 25, 2024
1 parent a8372e5 commit e34f477
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion criu/Makefile.packages
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ else
REQ-RPM-PKG-TEST-NAMES += $(PYTHON)-pyyaml
endif

export LIBS += -lprotobuf-c -ldl -lnl-3 -lsoccr -Lsoccr/ -lnet
ifeq ($(BUILD_MODE),static)
export LIBS += -Wl,-Bstatic -lprotobuf-c -lnl-3 -lnet -Wl,-Bdynamic -lpthread -ldl -lsoccr -Lsoccr/ $(DEP_LIBS)
else
export LIBS += -lprotobuf-c -ldl -lnl-3 -lsoccr -Lsoccr/ -lnet
endif

check-packages-failed:
$(warning Can not find some of the required libraries)
Expand Down

0 comments on commit e34f477

Please sign in to comment.