Index | Thread | Search

From:
Daniil Ryvkin <mail@leinadr.com>
Subject:
Re: [2/2] [new port] multimedia/obs-studio
To:
Stuart Henderson <stu@spacehopper.org>
Cc:
ports@openbsd.org
Date:
Tue, 4 Aug 2026 15:28:31 +0300

Download raw body.

Thread
On Sun, Aug 02, 2026 at 07:28:36PM +0100, Stuart Henderson wrote:
> On 2026/08/02 19:50, Daniil Ryvkin wrote:
> > On Wed, Jul 29, 2026 at 05:32:51PM +0100, Stuart Henderson wrote:
> > > > 	libuuid found via file(GLOB) in the OpenBSD cmake file
> > > > 	libGL found via file(GLOB) in libobs-opengl patch
> > > 
> > > I don't understand this, what's wrong with -lGL -luuid?
> > > 
> > > 
> > 
> > I tried -lGL and -luuid, but on OpenBSD there are no unversioned .so symlinks for these libraries - only versioned files
> > (libGL.so.19.2, libuuid.so.14.1). The linker fails with "unable to find library -lGL". CMake's own find_library() finds the versioned
> > files fine, but generating -lGL as a link flag does not work.
> > 
> > I think file(GLOB) is the right approach here.
> 
> Absolutely isn't. It is probably just missing -L/usr/X11R6 -L/usr/local/lib
> on the command line.
> 

You were right, adding -L to the linker flags was all that was needed.