Changeset 3457


Ignore:
Timestamp:
2006-03-23T15:13:12+01:00 (11 years ago)
Author:
kaloz
Message:

first try to decrease the size of openssl 0.9.8a

Location:
trunk/openwrt/package/openssl
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/openssl/Makefile

    r3328 r3457  
    55PKG_NAME:=openssl 
    66PKG_VERSION:=0.9.8a 
    7 PKG_RELEASE:=2 
     7PKG_RELEASE:=3 
    88PKG_MD5SUM:=1d16c727c10185e4d694f87f5e424ee1 
    99 
     
    1818PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1919 
    20 OPENSSL_NO_CIPHERS:= no-idea no-md2 no-mdc2 no-rc2 no-rc5 
     20OPENSSL_NO_CIPHERS:= no-deprecated no-idea no-md2 no-mdc2 no-rc2 no-rc5 no-sha0 no-sha256 no-sha512 no-dsa no-rmd160 no-aes192 no-cast 
     21OPENSSL_OPTIONS:= shared no-ec no-err no-fips no-hw no-krb5 no-threads zlib-dynamic no-engines 
    2122 
    2223include $(TOPDIR)/package/rules.mk 
     
    2728$(PKG_BUILD_DIR)/.configured: 
    2829        $(SED) 's,/CFLAG=,/CFLAG= $(TARGET_SOFT_FLOAT) ,g' $(PKG_BUILD_DIR)/Configure 
     30        $(SED) s/OPENWRT_OPTIMIZATION_FLAGS/$(BR2_TARGET_OPTIMIZATION)/g $(PKG_BUILD_DIR)/Configure 
    2931        (cd $(PKG_BUILD_DIR); \ 
    3032                PATH=$(TARGET_PATH) \ 
    31                 ./Configure linux-generic32 \ 
     33                ./Configure linux-openwrt \ 
    3234                  --prefix=/usr \ 
    3335                  --openssldir=/etc/ssl \ 
    3436                  -I$(STAGING_DIR)/usr/include \ 
    3537                  -L$(STAGING_DIR)/usr/lib -ldl \ 
     38                  -DOPENSSL_SMALL_FOOTPRINT \ 
    3639                  $(OPENSSL_NO_CIPHERS) \ 
    37                   shared no-asm no-ec no-err no-fips no-hw no-krb5 no-threads zlib-dynamic \ 
     40                  $(OPENSSL_OPTIONS) \ 
    3841        ) 
    3942        touch $@ 
     
    4750        $(MAKE) -C $(PKG_BUILD_DIR) -j1 \ 
    4851                CC="$(TARGET_CC)" \ 
    49                 CCOPTS="$(TARGET_CFLAGS) -fomit-frame-pointer" \ 
    5052                AR="$(TARGET_CROSS)ar r" \ 
    5153                RANLIB="$(TARGET_CROSS)ranlib" \ 
  • trunk/openwrt/package/openssl/patches/110-optimize-for-size.patch

    r3265 r3457  
    1 --- openssl-0.9.8a/Configure    2006-02-21 20:18:36.000000000 -0800 
    2 +++ openssl-0.9.8a-new/Configure        2006-02-21 20:53:32.000000000 -0800 
    3 @@ -313,7 +313,7 @@ 
    4  #### 
    5  # *-generic* is endian-neutral target, but ./config is free to 
    6  # throw in -D[BL]_ENDIAN, whichever appropriate... 
    7 -"linux-generic32","gcc:-DTERMIO -O3 -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
    8 +"linux-generic32","gcc:-DTERMIO -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
    9  "linux-ppc",   "gcc:-DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
    10  #### IA-32 targets... 
    11  "linux-ia32-icc",      "icc:-DL_ENDIAN -DTERMIO -O2 -no_cpprt::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-KPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
     1diff -ur openssl-0.9.8a/Configure openssl-0.9.8a-owrt/Configure 
     2--- openssl-0.9.8a/Configure    2005-08-02 12:59:42.000000000 +0200 
     3+++ openssl-0.9.8a-owrt/Configure       2006-03-23 14:16:35.000000000 +0100 
     4@@ -353,6 +353,8 @@ 
     5 "linux-alpha+bwx-gcc","gcc:-O3 -DL_ENDIAN -DTERMIO::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
     6 "linux-alpha-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${no_asm}", 
     7 "linux-alpha+bwx-ccc","ccc:-fast -readonly_strings -DL_ENDIAN -DTERMIO::-D_REENTRANT:::SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL:${no_asm}", 
     8+# OpenWrt targets 
     9+"linux-openwrt","gcc:-DTERMIO OPENWRT_OPTIMIZATION_FLAGS -fomit-frame-pointer -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
     10  
     11 #### *BSD [do see comment about ${BSDthreads} above!] 
     12 "BSD-generic32","gcc:-DTERMIOS -O3 -fomit-frame-pointer -Wall::${BSDthreads}:::BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL:${no_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
Note: See TracChangeset for help on using the changeset viewer.