Skip to content

Commit

Permalink
fixup! pam-moduler: Add first implementation of a Go PAM Module gener…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
3v1n0 committed Apr 11, 2024
1 parent 979a110 commit e0753f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/pam-moduler/moduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ func (g *Generator) generate() {
{"chauthtok", "ChangeAuthTok"},
}

g.printf(`//go:generate go build "-ldflags=-extldflags -Wl,-soname,%[2]s.so" `+
`-buildmode=c-shared -o %[2]s.so %[3]s %[4]s
g.printf(`//go:generate go build "-ldflags=-extldflags -Wl,-soname,%[1]s.so" `+
`-buildmode=c-shared -o %[1]s.so %[2]s %[3]s
`,
g.outputName, g.libName, buildTagsArg, strings.Join(g.buildFlags, " "))
g.libName, buildTagsArg, strings.Join(g.buildFlags, " "))

g.printf(`
// Package main is the package for the PAM module library.
Expand Down

0 comments on commit e0753f6

Please sign in to comment.