Skip to content

don't get echoserver static #849

@divinity76

Description

@divinity76

i tried to get echoserver static, but it didn't work, any idea why?

I did basically exactly:

#!/bin/bash
set -euxo pipefail

git clone  --depth 1 'https://github.com/wolfSSL/wolfssh.git'

cd wolfssh

git clone 'https://github.com/wolfSSL/wolfssl.git' --depth 1

cd wolfssl

mkdir install

./autogen.sh

CFLAGS='-s -Os' CXXFLAGS='-s -Os' ./configure --enable-static --disable-shared --prefix="$(pwd)/install" --enable-psa-lib-static

CFLAGS='-s -Os' CXXFLAGS='-s -Os' make -j$(nproc)

make install

cd ..

wget -O- 'https://github.com/wolfSSL/wolfssh/pull/848.diff' | git apply -

mkdir install

./autogen.sh

CFLAGS='-s -Os' ./configure --enable-static --disable-shared --enable-scp --enable-sftp --enable-shell --enable-cryptonly --with-wolfssl=wolfssl/install/ --prefix="$(pwd)/install"

CFLAGS='-s -Os' make -j$(nproc)

make install

(ps had to apply PR #848 to get it to compile)

and then...

$ ldd examples/echoserver/echoserver
	linux-vdso.so.1 (0x00007ffff7fc3000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffff7e1a000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffff7c00000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ffff7fc5000)

it's not static. any suggestions?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions