This shouldn't be necessary; Homebrew appends the `lib/pkgconfig` for each dependency. This could lead to samba picking up things that aren't marked dependencies.

What was the issue you had here?