Movatterモバイル変換


[0]ホーム

URL:


everything curl

    BoringSSL

    build boringssl

    $HOME/src is where I put the code in this example. You can pick wherever youlike.

    $ cd $HOME/src$ git clone https://boringssl.googlesource.com/boringssl$ cd boringssl$ mkdir build$ cd build$ cmake -DCMAKE_POSITION_INDEPENDENT_CODE=on ..$ make

    set up the build tree to get detected by curl's configure

    In the boringssl source tree root, make sure there is alib and anincludedir. Thelib directory should contain the two libs (I made them symlinksinto the build dir). Theinclude directory is already present bydefault. Make and populatelib like this (commands issued in the source treeroot, not in thebuild/ subdirectory).

    $ mkdir lib$ cd lib$ ln -s ../build/ssl/libssl.a$ ln -s ../build/crypto/libcrypto.a

    configure curl

    LIBS=-lpthread ./configure --with-ssl=$HOME/src/boringssl (where I point outthe root of the boringssl tree)

    Verify that at the end of the configuration, it says it detectedBoringSSL to be used.

    build curl

    Runmake in the curl source tree.

    Now you can install curl normally withmake install etc.


    [8]ページ先頭

    ©2009-2025 Movatter.jp