summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-05 09:23:56 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-05 11:53:24 +0100
commit484b367b40407b747a3078ab4b67d0c470512d65 (patch)
tree4d5274c991be03948a2a00d64eec00a2c37d73f8
parent5c85fc6020684e006c1ee672b023eeabae23374c (diff)
libptytty: fix compile
-rw-r--r--package/libptytty/Makefile2
-rw-r--r--package/libptytty/patches/patch-CMakeLists_txt13
2 files changed, 15 insertions, 0 deletions
diff --git a/package/libptytty/Makefile b/package/libptytty/Makefile
index 2488e8b40..cb1126ce1 100644
--- a/package/libptytty/Makefile
+++ b/package/libptytty/Makefile
@@ -18,9 +18,11 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBPTYTTY,libptytty,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+TARGET_CFLAGS+= -lstdc++
CONFIG_STYLE:= cmake
CMAKE_FLAGS+= -DTTY_GID_SUPPORT_EXITCODE=0 \
-DTTY_GID_SUPPORT_EXITCODE__TRYRUN_OUTPUT=0
+XAKE_FLAGS+= VERBOSE=1
libptytty-install:
$(INSTALL_DIR) $(IDIR_LIBPTYTTY)/usr/lib
diff --git a/package/libptytty/patches/patch-CMakeLists_txt b/package/libptytty/patches/patch-CMakeLists_txt
new file mode 100644
index 000000000..09a108c5a
--- /dev/null
+++ b/package/libptytty/patches/patch-CMakeLists_txt
@@ -0,0 +1,13 @@
+--- libptytty-2.0.orig/CMakeLists.txt 2021-08-04 16:07:44.000000000 +0200
++++ libptytty-2.0/CMakeLists.txt 2024-03-03 19:23:33.085544136 +0100
+@@ -323,10 +323,6 @@ configure_file(
+ libptytty.pc.in
+ libptytty.pc)
+
+-add_executable(c-sample eg/c-sample.c)
+-target_include_directories(c-sample PRIVATE src)
+-target_link_libraries(c-sample ptytty)
+-
+ add_custom_command(
+ OUTPUT ${CMAKE_SOURCE_DIR}/doc/libptytty.3
+ DEPENDS ${CMAKE_SOURCE_DIR}/doc/libptytty.3.pod