Debian Codegraph @

dlfcn_nocgo_linux.go

raw symbols SCIP
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
4 //go:build !cgo && !faketime
5
6 package purego
7
8 // if there is no Cgo we must link to each of the functions from dlfcn.h
9 // then the functions are called inside dlfcn_stubs.s
10
11 //go:cgo_import_dynamic purego_dlopen dlopen "libdl.so.2"
12 //go:cgo_import_dynamic purego_dlsym dlsym "libdl.so.2"
13 //go:cgo_import_dynamic purego_dlerror dlerror "libdl.so.2"
14 //go:cgo_import_dynamic purego_dlclose dlclose "libdl.so.2"
15
16 // on amd64 we don't need the following line - on 386 we do...
17 // anyway - with those lines the output is better (but doesn't matter) - without it on amd64 we get multiple DT_NEEDED with "libc.so.6" etc
18
19 //go:cgo_import_dynamic _ _ "libdl.so.2"