File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,8 +120,9 @@ print_config() {
120120}
121121
122122# Default CFLAGS
123- CFLAGS=" -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -include config-host.h"
124- BUILD_CFLAGS=" "
123+ ENV_CFLAGS=" ${CFLAGS} "
124+ CFLAGS=" ${CFLAGS: +$CFLAGS } -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -include config-host.h"
125+ BUILD_CFLAGS=" ${ENV_CFLAGS} "
125126
126127# Print configure header at the top of $config_host_h
127128echo " /*" > $config_host_h
588589echo " CC=$cc " >> $config_host_mak
589590print_config " CC" " $cc "
590591echo " CXX=$cxx " >> $config_host_mak
592+ echo " BUILD_CFLAGS=$BUILD_CFLAGS " >> $config_host_mak
591593print_config " CXX" " $cxx "
592594
593595# generate io_uring_version.h
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ override CPPFLAGS += -D_GNU_SOURCE \
1313CFLAGS ?= -O3 -Wall -Wextra -fno-stack-protector
1414override CFLAGS += -Wno-unused-parameter \
1515 -DLIBURING_INTERNAL \
16+ $(BUILD_CFLAGS ) \
1617 $(LIBURING_CFLAGS )
1718SO_CFLAGS =-fPIC $(CFLAGS )
1819L_CFLAGS =$(CFLAGS )
You can’t perform that action at this time.
0 commit comments