]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutlsxx: add source file for shared library
authorNikolaos Chatzikonstantinou <nchatz314@gmail.com>
Mon, 19 Dec 2022 05:34:49 +0000 (07:34 +0200)
committerZoltan Fridrich <zfridric@redhat.com>
Mon, 30 Jan 2023 09:25:24 +0000 (10:25 +0100)
The compiler will not produce a shared library from a header, so a
source file is necessary when producing the gnutlsxx shared library.

Signed-off-by: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
lib/Makefile.am
lib/gnutlsxx.cpp [new file with mode: 0644]

index 958c34e537c92fad6d0c9a72b610cf814b9f2336..6d4e8d225adfb7286165b0659c208ba8387b9dd0 100644 (file)
@@ -258,8 +258,7 @@ AM_CXXFLAGS = \
 
 lib_LTLIBRARIES += libgnutlsxx.la
 
-# avoid default by defining empty (per automake manual)
-libgnutlsxx_la_SOURCES =
+libgnutlsxx_la_SOURCES = gnutlsxx.cpp
 
 libgnutlsxx_la_LDFLAGS = -no-undefined \
        -version-info $(CXX_LT_CURRENT):$(CXX_LT_REVISION):$(CXX_LT_AGE)
diff --git a/lib/gnutlsxx.cpp b/lib/gnutlsxx.cpp
new file mode 100644 (file)
index 0000000..9868ca6
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2006-2012 Free Software Foundation, Inc.
+ *
+ * Author: Nikos Mavrogiannopoulos
+ *
+ * This file is part of GnuTLS.
+ *
+ * The GnuTLS is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <gnutls/gnutlsxx.h>