mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-12 09:46:25 +08:00
9976be86b3
Otherwise it is shown when compiling, like this: # We use the flags suggested in nolibc/nolibc.h, it makes the binary very small. gcc -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib -lgcc -static -o runc-dmz _dmz.c strip -gs runc-dmz Having it before the target is equally clear and will not be shown while compiling. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
8 lines
284 B
Makefile
8 lines
284 B
Makefile
# Get CC values for cross-compilation.
|
|
include ../../cc_platform.mk
|
|
|
|
# We use the flags suggested in nolibc/nolibc.h, it makes the binary very small.
|
|
runc-dmz: _dmz.c
|
|
$(CC) $(CFLAGS) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib -lgcc -static -o $@ $^
|
|
$(STRIP) -gs $@
|