Skip to content

Commit 0d3c78a

Browse files
authored
Update rules to be used for 26.04 (#2368)
* Update rules to be used for 26.04 * change spaces to tab
1 parent 4fadd84 commit 0d3c78a

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

debian/rules

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
#!/usr/bin/make -f
2+
#!/usr/bin/make -f
23

3-
include /usr/share/cdbs/1/rules/debhelper.mk
4-
include /usr/share/cdbs/1/class/cmake.mk
5-
6-
# Enable specific hardening flags but avoid the most performance-impacting ones
74
export DEB_BUILD_MAINT_OPTIONS = hardening=+format,+fortify,+stackprotector,+relro,-pie,-bindnow
85

9-
# Add some defensive flags without significant performance impact
106
export DEB_CFLAGS_MAINT_APPEND = -Wall -fno-strict-aliasing
117
export DEB_CXXFLAGS_MAINT_APPEND = -Wall -fno-strict-aliasing
128

13-
# Ensure proper RPATH handling to find libraries
14-
DEB_CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON
9+
%:
10+
dh $@ --buildsystem=cmake
1511

16-
# Build with symbols for better debugging
17-
DEB_CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE=RelWithDebInfo
12+
override_dh_auto_configure:
13+
dh_auto_configure -- \
14+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
15+
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON

0 commit comments

Comments
 (0)