[Libwebsockets] libwebsockets.so.17 almost ten times bigger than libwebsockets.so.16

thomas.spitz at hestia-france.com thomas.spitz at hestia-france.com
Tue Sep 29 14:23:57 CEST 2020


Hello everyone, hello Andy,

Using the same compilation directive, libwebsockets 4.1 stable creates 
lib that is almost ten times bigger than libwebsockets 4.0. Respectively 
3.1MB instead of 398,2 kB

I'm using same cmake script in both cases :

    #
    # CMake Toolchain file for crosscompiling on ARM.
    #
    # This can be used when running cmake in the following way:
    #  cd build/
    #  cmake .. -DCMAKE_TOOLCHAIN_FILE=../cross-arm-linux-gnueabihf.cmake
    #

    set(CROSS_PATH
    /home/thomas/Armadeus/armadeus-7.0-linux3.19.8-noUboot/buildroot/output/host/usr)

    # Target operating system name.
    set(CMAKE_SYSTEM_NAME Linux)

    # Name of C compiler.
    set(CMAKE_C_COMPILER "${CROSS_PATH}/bin/arm-linux-gcc")
    set(CMAKE_CXX_COMPILER "${CROSS_PATH}/bin/arm-linux-g++")

    # Where to look for the target environment. (More paths can be added
    here)
    set(CMAKE_FIND_ROOT_PATH
    "/home/thomas/Armadeus/armadeus-7.0-linux3.19.8-noUboot/buildroot/output/target")

    # Adjust the default behavior of the FIND_XXX() commands:
    # search programs in the host environment only.
    set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

    # Search headers and libraries in the target environment only.
    set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
    set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)


    FIND_PATH ( LIBWEBSOCKETS_INCLUDE_DIR libwebsockets.h
         /include
    )

And same shell commands :

    cmake .. -DCMAKE_INSTALL_PREFIX:PATH=./
    -DCMAKE_TOOLCHAIN_FILE=../cross-arm-linux-apf28.cmake
    -DOPENSSL_ROOT_DIR=/home/thomas/Armadeus/armadeus-7.0-linux3.19.8-noUboot/buildroot/output/build/libopenssl-1.1.1o
    -DOPENSSL_INCLUDE_DIR=/home/thomas/Armadeus/armadeus-7.0-linux3.19.8-noUboot/buildroot/output/build/libopenssl-1.1.1o/include/
    -DOPENSSL_LIBRARIES=/home/thomas/Armadeus/armadeus-7.0-linux3.19.8-noUboot/buildroot/output/build/libopenssl-1.1.1o/
    -DLWS_WITHOUT_DAEMONIZE=ON

    make

I suppose I will have to put some new -D flags but I wanted to be sure 
that it is normal before doing so.

Thanks in advance

Best regards,

Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200929/7ba40d5e/attachment.htm>


More information about the Libwebsockets mailing list