// SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2024 The Ebitengine Authors //go:build freebsd || linux package cgo /* #cgo LDFLAGS: -ldl #include */ import "C" // all that is needed is to assign each dl function because then its // symbol will then be made available to the linker and linked to inside dlfcn.go var ( _ = C.dlopen _ = C.dlsym _ = C.dlerror _ = C.dlclose )