aboutsummaryrefslogtreecommitdiffstats
path: root/security/openssl/files/patch-ab
blob: c5bd5f73382ac041872d5f5a7ba5d48797498bf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- Makefile.org.orig   Thu Apr  5 13:08:02 2001
+++ Makefile.org    Sat Oct 12 22:10:18 2002
@@ -171,7 +171,7 @@
 MAKEFILE= Makefile.ssl
 MAKE=     make -f Makefile.ssl
 
-MANDIR=$(OPENSSLDIR)/man
+MANDIR=$(MANPREFIX)/man
 MAN1=1
 MAN3=3
 SHELL=/bin/sh
@@ -178,7 +178,7 @@
 ONEDIRS=out tmp
 EDIRS=  times doc bugs util include certs ms shlib mt demos perl sf dep VMS
 WDIRS=  windows
-LIBS=   libcrypto.a libssl.a
+LIBS=   libcrypto.a libssl.a libRSAglue.a
 SHARED_CRYPTO=libcrypto$(SHLIB_EXT)
 SHARED_SSL=libssl$(SHLIB_EXT)
 SHARED_LIBS=
@@ -250,6 +250,21 @@
    done
 
 build-shared: clean-shared do_$(SHLIB_TARGET) link-shared
+
+freebsd-shared:
+   for i in ${SHLIBDIRS}; do \
+   rm -f lib$$i.a lib$$i.so \
+       lib$$i.so.${SHLIBVER}; \
+   ${MAKE} CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='-fPIC ${CFLAG}' SDIRS='${SDIRS}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' DIRS=$$i clean all || exit 1; \
+   ( set -x; ${CC}  -nodefaultlibs -shared -o lib$$i.so.${SHLIBVER} \
+       -Wl,-S,-soname=lib$$i.so.${SHLIBVER} \
+       -Wl,${WHOLE_ARCHIVE_FLAG} lib$$i.a ) || exit 1; \
+   rm -f lib$$i.a; (cd $$i ; ${MAKE} clean) || exit 1 ;\
+   done;
+   @set -x; \
+   for i in ${SHLIBDIRS}; do \
+   ln -s lib$$i.so.${SHLIBVER} lib$$i.so; \
+   done;
 
 do_bsd-gcc-shared: do_gnu-shared
 do_linux-shared: do_gnu-shared