1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/openssl/openssl.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 confopt="enable-md2" # e.g. for nmap
15 if [ "$SDECFG_STATIC" != 1 ]; then
16 var_append confopt " " "shared"
18 var_append confopt " " "no-shared"
19 var_append confopt " " "no-dso"
22 if [ "$SDECFG_LIBC" = "uclibc" ]; then
23 var_append confopt " " "no-async"
26 sysconfdir=$sysconfdir/ssl
28 # We can't use ./config becouse that would probably add optimize
29 # options which won't work on our taget system.
30 case "$arch_machine" in
31 i?86) [ "$SDECFG_X86_OPT" = i386 ] && trg="linux-elf no-asm" || trg=linux-elf ;;
32 x86_64) [ "$SDECFG_X8664_X32" = 1 ] && trg="linux-x32 no-asm" || trg=linux-x86_64 ;;
33 alpha) trg=linux-alpha-gcc ;;
34 powerpc) trg=linux-ppc ;;
35 powerpc64) trg=linux-ppc64 ;;
36 sparc64) trg=linux64-sparcv9 ;;
37 sparc*) # v7, v8, v9, ... remove plus, vis, ...
38 trg=linux-$(echo $arch_machine | sed 's/sparc\(v.\).*/sparc\1/' )
39 #[ "$trg" = "linux-sparc" ] && # broken in 1.1.1i 2021
43 *) if [ "$arch_bigendian" == "yes" ]; then
44 trg="linux-generic32 -DB_ENDIAN";
46 trg="linux-generic32 -DL_ENDIAN";
50 hook_add preconf 5 "rm ./doc/man1/passwd.pod" # avoid shared file for now
52 hook_add premake 4 "./Configure --prefix=/$prefix --libdir=$libdir --openssldir=$sysconfdir $trg $confopt"
54 [ $arch = sparc ] && var_append GCC_WRAPPER_APPEND ' ' '-c?:-latomic'
56 var_remove_regex makeopt " " "AS=.*"
57 var_remove_regex makeopt " " "AR=.*"
58 var_insert makeinstopt " " "MANDIR=$mandir INSTALL_PREFIX=$root"