Skip to content

Commit

Permalink
openrc-pam: use 'shared_module' for pam_openrc
Browse files Browse the repository at this point in the history
fixes the undefined reference build failure on freebsd, allowing the
module to build while referencing 'environ' in misc.c.

it also is the more correct meson function for pam modules.

Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
  • Loading branch information
navi-desu committed Jul 20, 2024
1 parent 5caae0d commit a9a26fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openrc-pam/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if get_option('pam') and pam_dep.found()
shared_library('pam_openrc',
shared_module('pam_openrc',
['openrc-pam.c', misc_c, version_h],
c_args : [cc_branding_flags],
dependencies : [pam_dep],
Expand Down

0 comments on commit a9a26fe

Please sign in to comment.