-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrules
executable file
·84 lines (67 loc) · 2.18 KB
/
rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
include /usr/share/dpkg/pkg-info.mk
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS="optimize=-lto hardening=-fortify,+pie,-stackprotectorstrong,-stackprotector"
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
confflags =
buildflags = \
CXXFLAGS="-Wno-deprecated-enum-enum-conversion"
confflags += \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_C_COMPILER=@C_COMPILER@ \
-DCMAKE_CXX_COMPILER=@CXX_COMPILER@ \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=True \
-DUSE_LINKER=lld \
-DBUILD_TESTS=False \
-DENABLE_ASSERTIONS=False \
-DBUILD_THUNKS=@SUPPORTS_THUNKS@ \
-DENABLE_CLANG_THUNKS=True \
-DTUNE_CPU=@TUNE_CPU@ \
-DTUNE_ARCH=@TUNE_ARCH@ \
-DOVERRIDE_VERSION=@FEX_VERSION@ \
-DUSE_FEXCONFIG_TOOLKIT=qt \
-DENABLE_X86_HOST_DEBUG=True
override_dh_clean:
rm -rf build
dh_clean
#override_dh_auto_configure:
# ls -l
# mkdir build
# cd build && $(buildflags) make $(confflags) -j$(nproc) ..
#
override_dh_auto_configure:
$(buildflags) dh_auto_configure -- $(confflags)
#override_dh_auto_build:
# cd build && ; tree .
#
# We will have installed with auto_install
#override_dh_install:
# true
#override_dh_installdocs:
# dh_installdocs
#override_dh_installchangelogs:
# dh_installchangelogs
# If dwz is attempted to be used then it will complain about too few files for multifile optimization
# If also complains about unknown debugging sections in our cross-arch libraries
# Disable entirely since it doesn't support these things
override_dh_dwz:
# Nothing here
# If dh_strip is enabled then it tries to strip ELF libraries of thunks which breaks
override_dh_strip:
# Nothing here
override_dh_auto_test:
# Explicitly disabled
# We need to ignore any shlib dependencies from the GuestThunks
override_dh_shlibdeps:
dh_shlibdeps -XGuestThunks
%:
dh $@ --builddirectory=build/ --buildsystem=cmake