Skip to content

Commit fb57ba8

Browse files
committed
fix: linux cross-build require CFLAGS_FOR_BUILD
1 parent 35016d9 commit fb57ba8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build-hnp/utils/Makefrag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ export STRIP := $(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip
1414
export CFLAGS := -I$(shell pwd)/../sysroot/include -Wno-int-conversion
1515
export CXXFLAGS := -I$(shell pwd)/../sysroot/include
1616
export LDFLAGS := -L$(shell pwd)/../sysroot/lib
17+
export CFLAGS_FOR_BUILD := -std=gnu17

0 commit comments

Comments
 (0)