Porting openssl-1.0.0b-libssl to ARM Linux

Source: Internet
Author: User

Development Environment:

Ubuntu 10.04
Arm-Linux-GCC version 4.4.1

Target Environment

Friendly arm mini6410
Linux-2.6.36

Procedure

1. download the latest OpenSSL on the official website and decompress it.

2. CD go to The openssl-1.0.0b directory

3. Run./confiugre Linux-elf-arm and set the environment to ARM Linux.

4. Modify the MAKEFILE file as follows:

Specify cc as arm-Linux-gcc

Specify libdl as the dependent Library

Specify AR and ranlib as arm-Linux-AR and arm-Linux-ranlib



Specify the installation directory


5. Execute make to complete compilation.

6. Su logs on as root and runs make install.

7. You can see that OpenSSL is compiled as a static library and placed in the directory of the specified installation.


Note:

Add the OpenSSL header file and library file declaration to the MAKEFILE file of the project. Pay attention to the following sequence of reference libraries:-lssl-lcrypto, if it is-lcrypto-lssl, a compilation error occurs.

Recommended Website:

Http://www.openssl.org/

Http://blog.chinaunix.net/u2/88438/showart_1901657.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.