1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
8 // intentionally write the same LDFLAGS differently
9 // to test correct handling of LDFLAGS.
10 #cgo linux LDFLAGS: -L. -lcgosotest
11 #cgo dragonfly LDFLAGS: -L. -l cgosotest
12 #cgo freebsd LDFLAGS: -L. -l cgosotest
13 #cgo openbsd LDFLAGS: -L. -l cgosotest
14 #cgo solaris LDFLAGS: -L. -lcgosotest
15 #cgo netbsd LDFLAGS: -L. libcgosotest.so
16 #cgo darwin LDFLAGS: -L. libcgosotest.dylib
17 #cgo windows LDFLAGS: -L. libcgosotest.a
18 #cgo aix LDFLAGS: -L. -l cgosotest