From: Robert Swiecki Date: Sun, 28 May 2017 16:46:38 +0000 (+0200) Subject: Pass CFLAGS to protobuf-c-text X-Git-Tag: 1.4~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c72e834dd9bb1353a4ef68524f7babb15ac4e9b;p=platform%2Fupstream%2Fnsjail.git Pass CFLAGS to protobuf-c-text --- diff --git a/Makefile b/Makefile index 006d379..bd08d65 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,8 @@ CC ?= gcc +EXTRA_CFLAGS := $(CFLAGS) + CFLAGS += -O2 -c -std=gnu11 \ -D_GNU_SOURCE \ -Wformat -Wformat=2 -Wformat-security -fPIE \ @@ -90,7 +92,7 @@ kafel/libkafel.a: $(MAKE) -C kafel protobuf-c-text/protobuf-c-text/.libs/libprotobuf-c-text.a: - sh -c "cd protobuf-c-text; CFLAGS=\"-fPIC\" ./autogen.sh;" + sh -c "cd protobuf-c-text; CFLAGS=\"$(EXTRA_CFLAGS)\" ./autogen.sh;" $(MAKE) -C protobuf-c-text $(PROTO_DEPS): config.proto