diff --git a/gen/nvml/nvml.yml b/gen/nvml/nvml.yml index b3164c4..81a8713 100644 --- a/gen/nvml/nvml.yml +++ b/gen/nvml/nvml.yml @@ -32,7 +32,7 @@ GENERATOR: limitations under the License. Includes: ["nvml.h"] FlagGroups: - - {name: "LDFLAGS", flags: ["-Wl,--unresolved-symbols=ignore-in-object-files"]} + - {name: "LDFLAGS", flags: ["-Wl,--export-dynamic","-Wl,--unresolved-symbols=ignore-in-object-files"]} - {name: "CFLAGS", flags: ["-DNVML_NO_UNVERSIONED_FUNC_DEFS=1"]} PARSER: SourcesPaths: ["nvml.h"] diff --git a/pkg/nvml/const.go b/pkg/nvml/const.go index 1a0efaf..a9a3a56 100644 --- a/pkg/nvml/const.go +++ b/pkg/nvml/const.go @@ -18,7 +18,7 @@ package nvml /* -#cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files +#cgo LDFLAGS: -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files #cgo CFLAGS: -DNVML_NO_UNVERSIONED_FUNC_DEFS=1 #include "nvml.h" #include diff --git a/pkg/nvml/nvml.go b/pkg/nvml/nvml.go index f63dfe8..bf2d6fc 100644 --- a/pkg/nvml/nvml.go +++ b/pkg/nvml/nvml.go @@ -18,7 +18,7 @@ package nvml /* -#cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files +#cgo LDFLAGS: -Wl,--export-dynamic -Wl,--unresolved-symbols=ignore-in-object-files #cgo CFLAGS: -DNVML_NO_UNVERSIONED_FUNC_DEFS=1 #include "nvml.h" #include