Page MenuHomeFreeBSD

Remove cmake dependency from devel/pructl
Needs ReviewPublic

Authored by oskar.holmlund_ohdata.se on Jun 20 2020, 7:32 PM.

Details

Reviewers
manu
Summary

Same as D25376.
If this transition to just a makefile will not be accepted an alternative patch is needed to build pructl @head.
Something like:

  • rpaulo-pructl-ef9fa544e6a3/CMakeLists.txt 2015-02-22 20:46:15.000000000 +0000

+++ pructl/CMakeLists.txt 2020-06-20 20:35:47.404949000 +0000
@@ -6,7 +6,8 @@
find_library(libpru NAMES pru PATHS /usr/local/lib ${CMAKE_SOURCE_DIR}/../libpru/build)
find_library(libedit NAMES edit)
find_library(libutil NAMES util)
-target_link_libraries(pructl ${libpru})
-target_link_libraries(prudbg ${libpru} ${libedit} ${libutil})
-set(CMAKE_C_FLAGS "-Weverything -Werror")
+find_library(libpthread NAMES pthread)
+target_link_libraries(pructl ${libpru} ${libpthread})
+target_link_libraries(prudbg ${libpru} ${libedit} ${libutil} ${libpthread})
+set(CMAKE_C_FLAGS "-Werror")
install(TARGETS pructl prudbg DESTINATION sbin)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

linimon retitled this revision from Remove cmake dependency from pructl to Remove cmake dependency from devel/pructl.Jun 26 2020, 7:59 AM