Skip to content

Really need a comprehensive guide on building #736

@Kiwifuit

Description

@Kiwifuit

Just started making my own linux from scratch and I cant seem to build a static binary for it

I have set the following options:

  User defined options
    backend        : ninja
    buildtype      : release
    default_library: static
    strip          : True
    branding       : openlinux
    pam            : false
    rootprefix     : /tmp/final/initramfs/

but when i do file initramfs/sbin/openrc i get a dynamically compiled binary:

initramfs/sbin/openrc: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=e252c588c31d05a1e85f359253fb26e9d5eada81, for GNU/Linux 3.2.0, stripped

Is it possible to create a comprehensive guide on how to build openrc statically?

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