pkg/relic: pass COMP through environment
export COMP by using the environment insteal of through the shell to prevnet issues with `\"` being defined when keeping macros in CFLAGS. Another solution was to use COMP='...' but could there could still have issues with single quotes in CFLAGS.
This commit is contained in:
parent
e42b4cc75f
commit
da59fb0eda
@ -16,9 +16,13 @@ all: $(PKG_BUILDDIR)/Makefile
|
|||||||
$(MAKE) -C $(PKG_BUILDDIR) && \
|
$(MAKE) -C $(PKG_BUILDDIR) && \
|
||||||
cp $(PKG_BUILDDIR)/lib/librelic_s.a $(BINDIR)/$(PKG_NAME).a
|
cp $(PKG_BUILDDIR)/lib/librelic_s.a $(BINDIR)/$(PKG_NAME).a
|
||||||
|
|
||||||
|
# Pass 'COMP' with a target specific export to not have issues with the shell
|
||||||
|
# escaping evaluation.
|
||||||
|
COMP = $(filter-out -Werror -Werror=old-style-definition -Werror=strict-prototypes -std=gnu99,$(CFLAGS))
|
||||||
|
$(PKG_BUILDDIR)/Makefile: export COMP ?=
|
||||||
|
|
||||||
$(PKG_BUILDDIR)/Makefile: $(TOOLCHAIN_FILE)
|
$(PKG_BUILDDIR)/Makefile: $(TOOLCHAIN_FILE)
|
||||||
cd $(PKG_BUILDDIR) && \
|
cd $(PKG_BUILDDIR) && \
|
||||||
COMP="$(filter-out -Werror -Werror=old-style-definition -Werror=strict-prototypes -std=gnu99, $(CFLAGS) ) " \
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
|
cmake -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
|
||||||
-DCHECK=off -DTESTS=0 -DBENCH=0 -DSHLIB=off -Wno-dev $(RELIC_CONFIG_FLAGS) .
|
-DCHECK=off -DTESTS=0 -DBENCH=0 -DSHLIB=off -Wno-dev $(RELIC_CONFIG_FLAGS) .
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user