diff options
Diffstat (limited to 'misc/cgo/testso/cgoso.go')
-rw-r--r-- | misc/cgo/testso/cgoso.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/cgo/testso/cgoso.go b/misc/cgo/testso/cgoso.go index 216cb1f05..ba6218348 100644 --- a/misc/cgo/testso/cgoso.go +++ b/misc/cgo/testso/cgoso.go @@ -5,7 +5,16 @@ package cgosotest /* -#cgo LDFLAGS: -L. -lcgosotest +// intentionally write the same LDFLAGS differently +// to test correct handling of LDFLAGS. +#cgo linux LDFLAGS: -L. -lcgosotest +#cgo dragonfly LDFLAGS: -L. -l cgosotest +#cgo freebsd LDFLAGS: -L. -l cgosotest +#cgo openbsd LDFLAGS: -L. -l cgosotest +#cgo netbsd LDFLAGS: -L. libcgosotest.so +#cgo darwin LDFLAGS: -L. libcgosotest.dylib +#cgo windows LDFLAGS: -L. libcgosotest.dll + void init(void); void sofunc(void); */ |