15 Commits

Author SHA1 Message Date
Theo Buehler
e4e25cd281 Make opensslconf.h MI again 2025-08-26 00:55:50 -06:00
Brent Cook
c51665d429 add copyright headers to Cmake files
based on original committer and date
2025-06-01 08:22:33 +07:00
Ivan A. Melnikov
031c2f1722 Basic loongarch64 support
Just wire things up to make the project buildable
on LoongArch64.

opensslconf.h is taken form riscv64 folder as is,
and is the same as on some other 64 bit architectures.

Refs: https://github.com/libressl/portable/issues/1123
Signed-off-by: Ivan A. Melnikov <iv@altlinux.org>
2025-04-10 17:22:36 +04:00
Thomas Petazzoni
3b5f0177ff include/CMakeLists.txt: error out when architecture is not supported
Since commit b98c56fd5e ("stop exposing
hidden defines in public opensslconf.h"), only a subset of CPU
architectures is supported by libressl. However, when a build is
attempted for an unsupported architecture, it doesn't fail with a
clear error message at configure time, but it fails with a weird error
at build time:

crypto/../include/openssl/rc4.h:75:9: error: unknown type name 'RC4_INT'

In order to help users, let's bail out nicely at configure time with a
good error message when the CPU architecture is not supported.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-07-13 14:41:36 +02:00
Pierre Wendling
5432e22b25 CMake: Copy public headers to the build directory. 2023-08-19 12:16:15 -04:00
Brent Cook
71ce0b8c3e generate opensslconf.h in build dir for cmake 2023-07-04 10:37:24 +03:00
Brent Cook
6501696dd7 generate opensslconf.h for mips 2023-03-23 06:35:41 -05:00
Brent Cook
b98c56fd5e stop exposing hidden defines in public opensslconf.h
pull in hidden headers instead, patching drectly for Windows support
2023-02-28 01:51:41 -06:00
Brent Cook
8fc30eca61 generate and include arch-specific headers for CMake builds 2023-02-21 00:25:04 -06:00
Aric Belsito
cbe57bef04 Some CMake Fixes.
pqueue.h was getting installed when it shouldn't.
pkgconfig files were not getting installed or generated.
2017-09-10 11:54:23 -07:00
d3x0r
a4d80ca56a Merge branch 'master' of https://github.com/libressl-portable/portable into SkipInstall
Fix merge conflicts from GNUInstallDirs merge to master.
2017-07-06 23:11:11 -07:00
d3x0r
2557dd7439 Add option LIBRESSL_SKIP_INSTALL
Internally LIBRESSL_SKIP_INSTALL, if not set becomes ENABLE_LIBRESSL_INSTALL so this by default is enabled.  defining LIBRESSL_SKIP_INSTALL before hand will disable all install() rules.
This is useful if another project includes and links to this statically.
I chose to add a prefix to avoid potential name collision because the options are cached globally.

If the installation is skipped, maybe it should also disable building apps?  I didn't do that.
2017-07-06 02:09:44 -07:00
d3x0r
a2bd5ebaba use GNUInstallDirs from cmake to specify install paths.
Primarily this is to select whether 'lib64' or 'lib' is used on linux type systems.
2017-07-06 01:49:43 -07:00
kinichiro
2510a5e6f9 modify cmake to build nc
- modify structure of CMakeLists.txt under apps/
  * move apps/CMakeLists.txt to apps/openssl/ since this is for openssl build
  * create new apps/nc/CMakeLists.txt for nc build
  * modify apps/CMakeLists.txt just add_subdirectory()

- add checking and compile of arc4random_uniform()

- add installing man files, openssl.1 and nc.1
2016-04-09 12:06:40 -05:00
Jeff Davey
5461dea7f1 Add install targets and shared libraries to CMake 2015-08-18 13:20:19 -06:00