summaryrefslogtreecommitdiff
path: root/config/module/libarchive/default
diff options
context:
space:
mode:
Diffstat (limited to 'config/module/libarchive/default')
-rw-r--r--config/module/libarchive/default/patches/0001-disable-werror.patch52
-rw-r--r--config/module/libarchive/default/target.cfg12
2 files changed, 64 insertions, 0 deletions
diff --git a/config/module/libarchive/default/patches/0001-disable-werror.patch b/config/module/libarchive/default/patches/0001-disable-werror.patch
new file mode 100644
index 00000000..604aa2fc
--- /dev/null
+++ b/config/module/libarchive/default/patches/0001-disable-werror.patch
@@ -0,0 +1,52 @@
+From 3af0047fecd12909d2dcef81a12623a5e00c678e Mon Sep 17 00:00:00 2001
+From: Leah Rowe <leah@libreboot.org>
+Date: Mon, 21 Sep 2026 12:21:13 +0100
+Subject: [PATCH 1/1] disable werror
+
+Signed-off-by: Leah Rowe <leah@libreboot.org>
+---
+ CMakeLists.txt | 7 -------
+ configure.ac | 2 +-
+ 2 files changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4c1f8770..7913d66a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -118,9 +118,6 @@ IF (CMAKE_C_COMPILER_ID MATCHES "^GNU$" OR
+ #################################################################
+ # Set compile flags for all build types.
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wformat -Wformat-security")
+- if (ENABLE_WERROR)
+- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+- endif ()
+ #################################################################
+ # Set compile flags for debug build.
+ # This is added into CMAKE_C_FLAGS when CMAKE_BUILD_TYPE is "Debug"
+@@ -168,10 +165,6 @@ IF (CMAKE_C_COMPILER_ID MATCHES "^XL$")
+ SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -qinfo=pro:use")
+ ENDIF(CMAKE_C_COMPILER_ID MATCHES "^XL$")
+ IF (MSVC)
+- if (ENABLE_WERROR)
+- # /WX option is the same as gcc's -Werror option.
+- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
+- endif ()
+ #################################################################
+ # Set compile flags for debug build.
+ # This is added into CMAKE_C_FLAGS when CMAKE_BUILD_TYPE is "Debug"
+diff --git a/configure.ac b/configure.ac
+index d8d85eda..25042b66 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1401,7 +1401,7 @@ esac
+
+ dnl Visibility annotations...
+ saved_CFLAGS="$CFLAGS"
+-CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
++CFLAGS="$CFLAGS -fvisibility=hidden"
+ AC_MSG_CHECKING(whether compiler supports visibility annotations)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([
+ int foo( void ) __attribute__((visibility("default")));
+--
+2.47.3
+
diff --git a/config/module/libarchive/default/target.cfg b/config/module/libarchive/default/target.cfg
new file mode 100644
index 00000000..e5302d6b
--- /dev/null
+++ b/config/module/libarchive/default/target.cfg
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+url="https://codeberg.org/libreboot/libarchive"
+bkup_url="https://git.disroot.org/libreboot/libarchive"
+
+rev="9525f90ca4bd14c7b335e2f8c84a4607b0af6bdf"
+
+tree="default"
+
+premake="eval autoreconf -fiv \"src/libarchive/$tree\""
+
+noconfig="y"