@@ -33,7 +33,7 @@ AWS_SDK_CPP_INCLUDES := $(foreach dep,$(AWS_SDK_CPP_DEPS),-I$(shell brew --prefi
3333GOOGLE_BENCHMARK_PREFIX := $(shell brew --prefix google-benchmark)
3434
3535$(CPP_LIB ) : | $(BUILD_DIR )
36- c++ -std=c++26 -shared -fPIC \
36+ c++ -std=c++23 -shared -fPIC \
3737 $(AWS_SDK_CPP_INCLUDES ) \
3838 aws-sdk-cpp/task.cpp \
3939 -o $@ \
@@ -45,23 +45,23 @@ $(RUST_LIB): | $(BUILD_DIR)
4545 mv ./aws-sdk-rust/target/release/librust$(so_ext ) $(BUILD_DIR ) /.
4646
4747$(S3CPP_LIB ) : | $(BUILD_DIR )
48- cmake -S .. -B ../build-release -DCMAKE_BUILD_TYPE=Release
49- cmake --build ../build-release
50- c++ -std=c++26 -shared -fPIC -I../src s3cpp/task.cpp -o $(BUILD_DIR ) /libs3cpp$(so_ext ) \
48+ cmake -S .. -B ../build-release -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
49+ cmake --build ../build-release --target s3cpplib
50+ c++ -std=c++23 -shared -fPIC -I../src s3cpp/task.cpp -o $(BUILD_DIR ) /libs3cpp$(so_ext ) \
5151 ../build-release/lib/libs3cpp.a $(shell pkg-config --libs libcurl libcrypto)
5252
5353$(IMPLEMENTATIONS_INC ) : $(GO_LIB ) $(CPP_LIB ) $(RUST_LIB ) $(S3CPP_LIB ) | $(BUILD_DIR )
5454 printf ' "./%s",\n' $(GO_LIB ) $(CPP_LIB ) $(RUST_LIB ) $(S3CPP_LIB ) > $@
5555
5656bench : $(IMPLEMENTATIONS_INC ) $(GO_LIB ) $(CPP_LIB ) $(RUST_LIB ) $(S3CPP_LIB ) | $(BUILD_DIR )
57- c++ -std=c++26 -I../src benchmark.cpp -o $(BUILD_DIR ) /bench \
57+ c++ -std=c++23 -I../src benchmark.cpp -o $(BUILD_DIR ) /bench \
5858 -I$(GOOGLE_BENCHMARK_PREFIX ) /include -L$(GOOGLE_BENCHMARK_PREFIX ) /lib \
5959 ../build/lib/libs3cpp.a -lbenchmark $(shell pkg-config --libs libcurl libcrypto)
6060 ./$(BUILD_DIR ) /bench
6161
6262
6363test : $(IMPLEMENTATIONS_INC ) $(GO_LIB ) $(S3CPP_LIB ) $(RUST_LIB ) | $(BUILD_DIR )
64- c++ -std=c++26 -I../src test.cpp -o $(BUILD_DIR ) /test ../build-release/lib/libs3cpp.a $(shell pkg-config --libs libcurl libcrypto)
64+ c++ -std=c++23 -I../src test.cpp -o $(BUILD_DIR ) /test ../build-release/lib/libs3cpp.a $(shell pkg-config --libs libcurl libcrypto)
6565 ./$(BUILD_DIR ) /test
6666
6767
0 commit comments