From 0f008340c01c693990b2f0f9e4147b3ed6126a46 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Fri, 5 Jul 2024 21:44:44 +0200 Subject: [PATCH 1/2] Jamfile: Clean up -Wno-format-truncation for usrsctp --- Jamfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jamfile b/Jamfile index 418c02ef0..a16fcc541 100644 --- a/Jamfile +++ b/Jamfile @@ -103,7 +103,7 @@ rule make_libusrsctp ( targets * : sources * : properties * ) } actions make_libusrsctp { - (cd $(CWD)/deps/usrsctp && mkdir -p $(BUILD_DIR) && cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=$(VARIANT) -DCMAKE_C_FLAGS="-fPIC -Wno-unknown-warning-option -Wno-format-truncation" -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 -Dsctp_inet=0 -Dsctp_inet6=0 .. && make -j2 usrsctp) + (cd $(CWD)/deps/usrsctp && mkdir -p $(BUILD_DIR) && cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=$(VARIANT) -DCMAKE_C_FLAGS="-fPIC" -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 -Dsctp_inet=0 -Dsctp_inet6=0 .. && make -j2 usrsctp) cp $(CWD)/deps/usrsctp/$(BUILD_DIR)/usrsctplib/libusrsctp.a $(<) } rule make_libusrsctp_msvc ( targets * : sources * : properties * ) From 6ab310b5887eab78cf0c0767a8ced2ebff8c7479 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Fri, 5 Jul 2024 21:53:57 +0200 Subject: [PATCH 2/2] Jamfile: Disable warnings as errors for usrsctp --- Jamfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jamfile b/Jamfile index a16fcc541..dfd84e7b8 100644 --- a/Jamfile +++ b/Jamfile @@ -103,7 +103,7 @@ rule make_libusrsctp ( targets * : sources * : properties * ) } actions make_libusrsctp { - (cd $(CWD)/deps/usrsctp && mkdir -p $(BUILD_DIR) && cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=$(VARIANT) -DCMAKE_C_FLAGS="-fPIC" -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 -Dsctp_inet=0 -Dsctp_inet6=0 .. && make -j2 usrsctp) + (cd $(CWD)/deps/usrsctp && mkdir -p $(BUILD_DIR) && cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=$(VARIANT) -DCMAKE_C_FLAGS="-fPIC" -Dsctp_werror=0 -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 -Dsctp_inet=0 -Dsctp_inet6=0 .. && make -j2 usrsctp) cp $(CWD)/deps/usrsctp/$(BUILD_DIR)/usrsctplib/libusrsctp.a $(<) } rule make_libusrsctp_msvc ( targets * : sources * : properties * ) @@ -118,7 +118,7 @@ actions make_libusrsctp_msvc cd $(CWD)/deps/usrsctp mkdir $(BUILD_DIR) cd $(BUILD_DIR) - cmake -G "Visual Studio 16 2019" -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 .. + cmake -G "Visual Studio 16 2019" -Dsctp_werror=0 -Dsctp_build_shared_lib=0 -Dsctp_build_programs=0 -Dsctp_inet=0 -Dsctp_inet6=0 .. msbuild usrsctplib.sln /property:Configuration=$(VARIANT) cd %OLDD% cp $(CWD)/deps/usrsctp/$(BUILD_DIR)/usrsctplib/Release/usrsctp.lib $(<)