diff --git a/.woodpecker/.build_experimental.yml b/.woodpecker/.build_experimental.yml index 032a42b..faea53d 100644 --- a/.woodpecker/.build_experimental.yml +++ b/.woodpecker/.build_experimental.yml @@ -38,5 +38,8 @@ pipeline: - make skip-unused - readelf -d suvieter - du -h suvieter + - '[ "$(readelf -d suvieter | grep NEEDED | wc -l)" = 0 ]' + - strip -s suvieter + - du -h suvieter when: event: push diff --git a/Makefile b/Makefile index 2f39983..6f39a40 100644 --- a/Makefile +++ b/Makefile @@ -87,4 +87,4 @@ afvieter: $(SOURCES) .PHONY: skip-unused skip-unused: suvieter suvieter: $(SOURCES) - $(V_PATH) -showcc -skip-unused -o suvieter $(SRC_DIR) + $(V_PATH) -showcc -skip-unused -prod -o suvieter $(SRC_DIR)