diff --git a/debian/patches/README b/debian/patches/README deleted file mode 100644 index 80c1584..0000000 --- a/debian/patches/README +++ /dev/null @@ -1,3 +0,0 @@ -0xxx: Grabbed from upstream development. -1xxx: Possibly relevant for upstream adoption. -2xxx: Only relevant for official Debian release. diff --git a/debian/patches/apply_CFLAGS.patch b/debian/patches/apply_CFLAGS.patch new file mode 100644 index 0000000..1cfe8c5 --- /dev/null +++ b/debian/patches/apply_CFLAGS.patch @@ -0,0 +1,32 @@ +From: =?utf-8?q?IOhannes_m_zm=C3=B6lnig?= +Date: Sat, 11 Jan 2025 19:01:54 +0100 +Subject: Make sure that CFLAGS from the cmdline are honoured + +Origin: Debian +Forwarded: https://github.com/dyne/frei0r/pull/202 +Last-Update: 2025-01-11 +--- + src/filter/levels/CMakeLists.txt | 2 +- + src/filter/three_point_balance/CMakeLists.txt | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- frei0r.orig/src/filter/levels/CMakeLists.txt ++++ frei0r/src/filter/levels/CMakeLists.txt +@@ -1,6 +1,6 @@ + # Set C99 flag for gcc + if (CMAKE_COMPILER_IS_GNUCC) +- set(CMAKE_C_FLAGS "-std=c99") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") + endif (CMAKE_COMPILER_IS_GNUCC) + + set (SOURCES levels.c) +--- frei0r.orig/src/filter/three_point_balance/CMakeLists.txt ++++ frei0r/src/filter/three_point_balance/CMakeLists.txt +@@ -1,6 +1,6 @@ + # Set C99 flag for gcc + if (CMAKE_COMPILER_IS_GNUCC) +- set(CMAKE_C_FLAGS "-std=c99") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") + endif (CMAKE_COMPILER_IS_GNUCC) + + set (SOURCES three_point_balance.c) diff --git a/debian/patches/series b/debian/patches/series index e69de29..99b688f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +apply_CFLAGS.patch