File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ if (C_CLANG OR C_GCC)
210
210
# TODO:
211
211
# Try error checking -fsanitize=bounds-strict -fsanitize=leak
212
212
# Requires libubsan and liblsan, respectively.
213
+ # Maybe -fstack-protector-all, -fstack-check
213
214
214
215
###set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wvla -ffast-math -ftree-vectorize -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE ${EXTRA_FLAGS}")
215
216
if (FREEBSD)
Original file line number Diff line number Diff line change @@ -28,10 +28,15 @@ file(WRITE "${CMAKE_BINARY_DIR}/direwolf.conf" "${file_content}")
28
28
# There are two locations. The one in /etc/udev/rules.d is meant for local customization and
29
29
# takes precedence for the same name.
30
30
# https://sources.debian.org/src/direwolf/1.7+dfsg-2/debian/patches/lib-udev-rules/
31
- # says that we should use the /usr/lib/udev/rules.d location.
31
+ # says that we should use the /usr/lib/udev/rules.d location when building a package.
32
+ # TODO: I think the proper solution is to select the location based on whether
33
+ # the application installation location is /usr/local or /usr.
32
34
if (LINUX)
33
- #install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/)
34
- install (FILES "${CUSTOM_CONF_DIR} /99-direwolf-cmedia.rules" DESTINATION /usr/lib/udev/rules.d/)
35
+ if (CMAKE_INSTALL_PREFIX STREQUAL "/usr/local" )
36
+ install (FILES "${CUSTOM_CONF_DIR} /99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/)
37
+ else ()
38
+ install (FILES "${CUSTOM_CONF_DIR} /99-direwolf-cmedia.rules" DESTINATION /usr/lib/udev/rules.d/)
39
+ endif ()
35
40
endif ()
36
41
37
42
install (FILES "${CMAKE_BINARY_DIR} /direwolf.conf" DESTINATION ${INSTALL_CONF_DIR} )
You can’t perform that action at this time.
0 commit comments