Skip to content

Commit

Permalink
dummy-libs: Stub libssp and libssp_nonshared
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Feb 2, 2024
1 parent 059b2d2 commit 71efdb6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dummy-libs/libssp/src/dummy.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

// We build an empty libsso because some packages expect -lssp
// The actual ssp functions are provided by libc.

extern "C" void __mlibc_libssp_dummy(void) { }

6 changes: 6 additions & 0 deletions dummy-libs/libssp_nonshared/src/dummy.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

// We build an empty libsso because some packages expect -lssp_nonshared
// The actual ssp functions are provided by libc.

extern "C" void __mlibc_libssp_nonshared_dummy(void) { }

2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ if not headers_only
endif
library('resolv', 'dummy-libs/libresolv/src/dummy.cpp', install: true)
library('dl', 'dummy-libs/libdl/src/dummy.cpp', install: true)
library('ssp', 'dummy-libs/libssp/src/dummy.cpp', install: true)
library('ssp_nonshared', 'dummy-libs/libssp_nonshared/src/dummy.cpp', install: true)
endif

summary_info = {}
Expand Down

0 comments on commit 71efdb6

Please sign in to comment.