Hi Ian,

So I observed a very strange thing.If I leave it out completely then also
the project gets compiled.
I thought that linker file is binding my Go code to the C code.Why am I not
getting any error ?
How the Go code is then getting linked to the C code ?

Compiled Succesfully
-------------------------------

gcc -L/usr/local/lib -lsyslog-ng -o syslog-node.so
-L/usr/local/lib/syslog-ng -ldbparser -c `pkg-config --libs --cflags
glib-2.0` -I/usr/local/include/syslog-ng/ -I./lib/syslog-ng-3.6.2/ -I.
-I/usr/local/include/eventlog/ ./lib/syslog-node.c
go build -v -x main.go
WORK=/tmp/go-build054960160
mkdir -p $WORK/b001/
cat >$WORK/b001/importcfg.link << 'EOF' # internal
packagefile
command-line-arguments=/home/nsaboo/.cache/go-build/5d/5db621e46792693a43911a7fc99e450f7198b1a62956677a4a47f7f1a8ebc0b2-d
packagefile PAS/Godeps/_workspace/src/
ghe.eng.fireeye.com/helix/tapgo.git=/home/nsaboo/.cache/go-build/25/255a89666be841631d45f43b7b900a38971218b4e53d88bab29a6f89de1fa2a5-d
packagefile PAS/Godeps/_workspace/src/
github.com/Sirupsen/logrus=/home/nsaboo/.cache/go-build/ac/ac0b35d28e0801df885605564391f3b660cb2d1212b0c4df659e5e89d5bb7ed6-d
packagefile
PAS/aws=/home/nsaboo/.cache/go-build/c1/c1b4eb19b03247ff0e834c9e652dd9024af2f74c4f817cbf8b8b577d4be8d608-d
packagefile
PAS/config=/home/nsaboo/.cache/go-build/1b/1b9780455e160d33364e0c69669e8d4999562c4a6180d5e21f3ce8bfee470046-d
packagefile time=/usr/local/go/pkg/linux_amd64/time.a
packagefile runtime=/usr/local/go/pkg/linux_amd64/runtime.a
packagefile encoding/json=/usr/local/go/pkg/linux_amd64/encoding/json.a
packagefile fmt=/usr/local/go/pkg/linux_amd64/fmt.a
packagefile
github.com/Sirupsen/logrus=/home/nsaboo/.cache/go-build/89/8914c444f75bb96cc629fec71f0db3864f1b5f6ec0cfdcd959eb5459b497953d-d
packagefile
github.com/garyburd/redigo/redis=/home/nsaboo/Documents/goworkspace/pkg/linux_amd64/github.com/garyburd/redigo/redis.a
packagefile
github.com/quipo/statsd=/home/nsaboo/Documents/goworkspace/pkg/linux_amd64/github.com/quipo/statsd.a
packagefile
github.com/stretchr/testify/mock=/home/nsaboo/.cache/go-build/4d/4d2b87d8985068509cec6f143bbc904330303f9fa1e89e5981c47468a84d6a6d-d
packagefile
github.com/xeipuuv/gojsonschema=/home/nsaboo/Documents/goworkspace/pkg/linux_amd64/github.com/xeipuuv/gojsonschema.a
packagefile io/ioutil=/usr/local/go/pkg/linux_amd64/io/ioutil.a
packagefile os=/usr/local/go/pkg/linux_amd64/os.a
packagefile strconv=/usr/local/go/pkg/linux_amd64/strconv.a
packagefile strings=/usr/local/go/pkg/linux_amd64/strings.a
packagefile bufio=/usr/local/go/pkg/linux_amd64/bufio.a
packagefile bytes=/usr/local/go/pkg/linux_amd64/bytes.a
packagefile io=/usr/local/go/pkg/linux_amd64/io.a
packagefile log=/usr/local/go/pkg/linux_amd64/log.a
packagefile sort=/usr/local/go/pkg/linux_amd64/sort.a
packagefile sync=/usr/local/go/pkg/linux_amd64/sync.a
packagefile syscall=/usr/local/go/pkg/linux_amd64/syscall.a
packagefile PAS/Godeps/_workspace/src/
github.com/nu7hatch/gouuid=/home/nsaboo/.cache/go-build/36/36d9f2d9bb47cb906a96fbff8ef49774a2ed2909c1dd828540ebea88c5b66375-d
packagefile
PAS/constants=/home/nsaboo/.cache/go-build/9f/9f64de8861eeb80afe7d44fe64f90a63917210b38d88150f61941db84d1281a0-d
packagefile
PAS/lib=/home/nsaboo/.cache/go-build/f5/f548701c9d2403fdd2c4a5cb630b2fd2b98ddeafc512290f318a298d0d7cf382-d
packagefile
PAS/models=/home/nsaboo/.cache/go-build/6a/6a5b8ed822a9cda39e0482e171d3d45f54cceab20e5a8d35dc78ab1a5a6c8677-d
packagefile compress/zlib=/usr/local/go/pkg/linux_amd64/compress/zlib.a
packagefile errors=/usr/local/go/pkg/linux_amd64/errors.a
packagefile
github.com/aws/aws-sdk-go/aws=/home/nsaboo/.cache/go-build/09/097a3abd3003faf1b8b1063ff6b83c9ea7b621b7f24d07dd97f38988567eb838-d
packagefile
github.com/aws/aws-sdk-go/aws/session=/home/nsaboo/.cache/go-build/cd/cd9b89755b069cb1766be47dd648b4571f2738a81ebfb061286a77d23e38b909-d
packagefile
github.com/aws/aws-sdk-go/service/s3=/home/nsaboo/.cache/go-build/a0/a0b4f9349013d85866b327cc613509c58702c1eb901f56fca00a5f1897869622-d
packagefile
github.com/aws/aws-sdk-go/service/s3/s3manager=/home/nsaboo/.cache/go-build/2d/2d98542103b3ef7dc46e7f4836bf4af8254b3b148917ea8b06d44cf15f19339d-d
packagefile
github.com/aws/aws-sdk-go/service/sqs=/home/nsaboo/Documents/goworkspace/pkg/linux_amd64/github.com/aws/aws-sdk-go/service/sqs.a
packagefile net/http=/usr/local/go/pkg/linux_amd64/net/http.a
packagefile net/url=/usr/local/go/pkg/linux_amd64/net/url.a
packagefile
internal/bytealg=/usr/local/go/pkg/linux_amd64/internal/bytealg.a
packagefile internal/cpu=/usr/local/go/pkg/linux_amd64/internal/cpu.a
packagefile
runtime/internal/atomic=/usr/local/go/pkg/linux_amd64/runtime/internal/atomic.a
packagefile
runtime/internal/math=/usr/local/go/pkg/linux_amd64/runtime/internal/math.a
packagefile
runtime/internal/sys=/usr/local/go/pkg/linux_amd64/runtime/internal/sys.a
packagefile encoding=/usr/local/go/pkg/linux_amd64/encoding.a
packagefile encoding/base64=/usr/local/go/pkg/linux_amd64/encoding/base64.a
packagefile math=/usr/local/go/pkg/linux_amd64/math.a
packagefile reflect=/usr/local/go/pkg/linux_amd64/reflect.a
packagefile unicode=/usr/local/go/pkg/linux_amd64/unicode.a
packagefile unicode/utf16=/usr/local/go/pkg/linux_amd64/unicode/utf16.a
packagefile unicode/utf8=/usr/local/go/pkg/linux_amd64/unicode/utf8.a
packagefile
internal/fmtsort=/usr/local/go/pkg/linux_amd64/internal/fmtsort.a
packagefile context=/usr/local/go/pkg/linux_amd64/context.a
packagefile
golang.org/x/sys/unix=/home/nsaboo/.cache/go-build/cc/cc574dca21696f2f1f94aec334cfa8e178e8ce7c5c99a839d76dfa0bfcf3294f-d
packagefile sync/atomic=/usr/local/go/pkg/linux_amd64/sync/atomic.a
packagefile crypto/rand=/usr/local/go/pkg/linux_amd64/crypto/rand.a
packagefile crypto/sha1=/usr/local/go/pkg/linux_amd64/crypto/sha1.a
packagefile crypto/tls=/usr/local/go/pkg/linux_amd64/crypto/tls.a
packagefile encoding/hex=/usr/local/go/pkg/linux_amd64/encoding/hex.a
packagefile
github.com/garyburd/redigo/internal=/home/nsaboo/.cache/go-build/27/27648452fd5097ad440e34ff14932e87a956c460b8e29f4a9cf84713575bef31-d
packagefile net=/usr/local/go/pkg/linux_amd64/net.a
packagefile regexp=/usr/local/go/pkg/linux_amd64/regexp.a
packagefile
github.com/quipo/statsd/event=/home/nsaboo/Documents/goworkspace/pkg/linux_amd64/github.com/quipo/statsd/event.a
packagefile math/rand=/usr/local/go/pkg/linux_amd64/math/rand.a
packagefile
github.com/stretchr/testify/vendor/github.com/davecgh/go-spew/spew=/home/nsaboo/.cache/go-build/c8/c8cf45792d2d31aa58ac5b1034fded84cde110d8eb671e9bbad57cc57224e6e2-d
packagefile
github.com/stretchr/testify/vendor/github.com/pmezard/go-difflib/difflib=/home/nsaboo/.cache/go-build/bc/bcf4a0492d539497c027a06cb00f6b7db78e16645a74fe7eeb103e500da1d9c3-d
packagefile
github.com/stretchr/testify/vendor/github.com/stretchr/objx=/home/nsaboo/.cache/go-build/64/647c3947accfee06e7d44d10b22968c317afe58820a379ee6cf5bdf18aa7016e-d
packagefile
github.com/stretchr/testify/assert=/home/nsaboo/.cache/go-build/67/6723204a312d9edf2853893f8ca9c649c5ab02c6299ba1ae3d24d7167c7b060f-d
packagefile
github.com/xeipuuv/gojsonreference=/home/nsaboo/.cache/go-build/85/85707db347741780a91da7fb41d7424b81b2d68f1dd577bd067b81cf1cb94fab-d
packagefile math/big=/usr/local/go/pkg/linux_amd64/math/big.a
packagefile net/mail=/usr/local/go/pkg/linux_amd64/net/mail.a
packagefile path/filepath=/usr/local/go/pkg/linux_amd64/path/filepath.a
packagefile text/template=/usr/local/go/pkg/linux_amd64/text/template.a
packagefile internal/poll=/usr/local/go/pkg/linux_amd64/internal/poll.a
packagefile
internal/syscall/unix=/usr/local/go/pkg/linux_amd64/internal/syscall/unix.a
packagefile
internal/testlog=/usr/local/go/pkg/linux_amd64/internal/testlog.a
packagefile math/bits=/usr/local/go/pkg/linux_amd64/math/bits.a
packagefile internal/race=/usr/local/go/pkg/linux_amd64/internal/race.a
packagefile crypto/md5=/usr/local/go/pkg/linux_amd64/crypto/md5.a
packagefile hash=/usr/local/go/pkg/linux_amd64/hash.a
packagefile path=/usr/local/go/pkg/linux_amd64/path.a
packagefile runtime/cgo=/usr/local/go/pkg/linux_amd64/runtime/cgo.a
packagefile
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil=/home/nsaboo/.cache/go-build/80/800316fcc7144377a4cc809c4b02b63c6959ccd664fbc4105363a77ea56015ca-d
packagefile compress/flate=/usr/local/go/pkg/linux_amd64/compress/flate.a
packagefile encoding/binary=/usr/local/go/pkg/linux_amd64/encoding/binary.a
packagefile hash/adler32=/usr/local/go/pkg/linux_amd64/hash/adler32.a
packagefile
github.com/aws/aws-sdk-go/aws/awserr=/home/nsaboo/.cache/go-build/7e/7e4c03b1cc610fe3b5bc3ebc311f1429f6142ef28c4a7a60141cfbdeb979f81b-d
packagefile
github.com/aws/aws-sdk-go/aws/credentials=/home/nsaboo/.cache/go-build/65/65f743d4eff78feda6b6fa30278d995a06acea5486764b30a85e1a7282be5f49-d
packagefile
github.com/aws/aws-sdk-go/aws/endpoints=/home/nsaboo/.cache/go-build/de/de3f4a68b4cb6cfcfe37787d20cbf013bcc93d6fbdd43172ab566c2fa69eeda3-d
packagefile
github.com/aws/aws-sdk-go/internal/sdkio=/home/nsaboo/.cache/go-build/d8/d8ca4bba48a91d8ee434fc11c017350e654ecc39af0d7d1394c711fe20622909-d
packagefile crypto/x509=/usr/local/go/pkg/linux_amd64/crypto/x509.a
packagefile
github.com/aws/aws-sdk-go/aws/client=/home/nsaboo/.cache/go-build/1d/1d582f6a290b515b4675938ecf58fd1caad9a626d6264303d9ca04ffc1954d5b-d
packagefile
github.com/aws/aws-sdk-go/aws/corehandlers=/home/nsaboo/.cache/go-build/79/79f02a25c46a6abb4e7800f8ed988f9d93148fee76704b94fd319a4bc8e86257-d
packagefile
github.com/aws/aws-sdk-go/aws/credentials/processcreds=/home/nsaboo/.cache/go-build/ea/ea5596111642cd390ca81a75a1809bea45f497a4fabb6f7726b21a74b32f0316-d
packagefile
github.com/aws/aws-sdk-go/aws/credentials/stscreds=/home/nsaboo/.cache/go-build/3d/3d4cb68ca159d4b77580128d64a9877663b3718027e9b6422d28fd822e5333ba-d
packagefile
github.com/aws/aws-sdk-go/aws/csm=/home/nsaboo/.cache/go-build/49/49e58e99180d4a537432e83fe3b227d30dcd83d75dcf27ff89f7cbc571310e22-d
packagefile
github.com/aws/aws-sdk-go/aws/defaults=/home/nsaboo/.cache/go-build/d3/d3b6d5c2a4ad4411d37bf1dcba7fb5c4ed533db3b90a403eee3400835c140bc5-d
packagefile
github.com/aws/aws-sdk-go/aws/request=/home/nsaboo/.cache/go-build/18/18189e2737fcd4d9685e1b77780ff83cb3f3ad988d91481a19855ec72ac53daf-d
packagefile
github.com/aws/aws-sdk-go/internal/ini=/home/nsaboo/.cache/go-build/52/5225f9f99c8aec2cb27115cd2670264a29c557864c98f579941b27847aa50c8f-d
packagefile
github.com/aws/aws-sdk-go/internal/shareddefaults=/home/nsaboo/.cache/go-build/63/63935a3a6886775c881fac2e99d6956c457b7750431630983c7b2437fa6da322-d
packagefile crypto/sha256=/usr/local/go/pkg/linux_amd64/crypto/sha256.a
packagefile encoding/xml=/usr/local/go/pkg/linux_amd64/encoding/xml.a
packagefile
github.com/aws/aws-sdk-go/aws/awsutil=/home/nsaboo/.cache/go-build/fd/fdb4e8f755b5ae93b164de69cee43d7b05ca1fb4df8d31d668bfdd14a643b77f-d
packagefile
github.com/aws/aws-sdk-go/aws/client/metadata=/home/nsaboo/.cache/go-build/1e/1ed3c56cc16a63a55219bdd1ed36d19e97badc29e969de19ca76e0eb9c15c23e-d
packagefile
github.com/aws/aws-sdk-go/aws/signer/v4=/home/nsaboo/.cache/go-build/3e/3e745872016c9076d69cdbb704537a2182e26f7ae871d2b5de6a02cbced51a75-d
packagefile
github.com/aws/aws-sdk-go/internal/s3err=/home/nsaboo/.cache/go-build/c5/c51fa28dac5ec2b6bb610021c53a96a8c92236cba7c7d7931f8edfd024e01201-d
packagefile
github.com/aws/aws-sdk-go/private/protocol=/home/nsaboo/.cache/go-build/8b/8b37714b401fac719558f62f2d461791f3a6aac99f82f0a55667d025c45f7ba0-d
packagefile
github.com/aws/aws-sdk-go/private/protocol/eventstream=/home/nsaboo/.cache/go-build/86/86b6b282876571e0b52206c0a9e20fc012c04ac77cf6578d49c3b40b12cfed5f-d
packagefile
github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi=/home/nsaboo/.cache/go-build/1d/1d6227e8927a31a9e75e29eeeff49f77227118585901a7aa4e508925a89ddfae-d
packagefile
github.com/aws/aws-sdk-go/private/protocol/rest=/home/nsaboo/.cache/go-build/dd/dde28b29982de6488ba652a75de9e536e9e37cc24efcebd2317509dca341f150-d
packagefile
github.com/aws/aws-sdk-go/private/protocol/restxml=/home/nsaboo/.cache/go-build/ec/ec0ba96cc0a7f98a682cdb9b576d748b9771686c6494455f29c8b63532838115-d
packagefile
github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil=/home/nsaboo/.cache/go-build/5b/5b973bf21fa81aeb4bbc1bfed6cf11b7c96924f881fd20f4230ed7f738f6ce88-d
packagefile
github.com/aws/aws-sdk-go/service/s3/s3iface=/home/nsaboo/.cache/go-build/58/584d6d60024bddfb90aa9c484b44f7e34b554e3b124ffcb33c75cba279fcd2f1-d
packagefile
github.com/aws/aws-sdk-go/private/protocol/query=/home/nsaboo/.cache/go-build/aa/aa2be583120a0f48a857c1d5055f1306b0a680a0dd52000fecfe69df1f1e1866-d
packagefile compress/gzip=/usr/local/go/pkg/linux_amd64/compress/gzip.a
packagefile container/list=/usr/local/go/pkg/linux_amd64/container/list.a
packagefile
internal/x/net/http/httpguts=/usr/local/go/pkg/linux_amd64/internal/x/net/http/httpguts.a
packagefile
internal/x/net/http/httpproxy=/usr/local/go/pkg/linux_amd64/internal/x/net/http/httpproxy.a
packagefile
internal/x/net/http2/hpack=/usr/local/go/pkg/linux_amd64/internal/x/net/http2/hpack.a
packagefile
internal/x/net/idna=/usr/local/go/pkg/linux_amd64/internal/x/net/idna.a
packagefile mime=/usr/local/go/pkg/linux_amd64/mime.a
packagefile mime/multipart=/usr/local/go/pkg/linux_amd64/mime/multipart.a
packagefile
net/http/httptrace=/usr/local/go/pkg/linux_amd64/net/http/httptrace.a
packagefile
net/http/internal=/usr/local/go/pkg/linux_amd64/net/http/internal.a
packagefile net/textproto=/usr/local/go/pkg/linux_amd64/net/textproto.a
packagefile crypto/aes=/usr/local/go/pkg/linux_amd64/crypto/aes.a
packagefile crypto/cipher=/usr/local/go/pkg/linux_amd64/crypto/cipher.a
packagefile crypto=/usr/local/go/pkg/linux_amd64/crypto.a
packagefile crypto/des=/usr/local/go/pkg/linux_amd64/crypto/des.a
packagefile crypto/ecdsa=/usr/local/go/pkg/linux_amd64/crypto/ecdsa.a
packagefile crypto/elliptic=/usr/local/go/pkg/linux_amd64/crypto/elliptic.a
packagefile crypto/hmac=/usr/local/go/pkg/linux_amd64/crypto/hmac.a
packagefile crypto/rc4=/usr/local/go/pkg/linux_amd64/crypto/rc4.a
packagefile crypto/rsa=/usr/local/go/pkg/linux_amd64/crypto/rsa.a
packagefile crypto/sha512=/usr/local/go/pkg/linux_amd64/crypto/sha512.a
packagefile crypto/subtle=/usr/local/go/pkg/linux_amd64/crypto/subtle.a
packagefile encoding/asn1=/usr/local/go/pkg/linux_amd64/encoding/asn1.a
packagefile encoding/pem=/usr/local/go/pkg/linux_amd64/encoding/pem.a
packagefile
internal/x/crypto/chacha20poly1305=/usr/local/go/pkg/linux_amd64/internal/x/crypto/chacha20poly1305.a
packagefile
internal/x/crypto/cryptobyte=/usr/local/go/pkg/linux_amd64/internal/x/crypto/cryptobyte.a
packagefile
internal/x/crypto/curve25519=/usr/local/go/pkg/linux_amd64/internal/x/crypto/curve25519.a
packagefile
internal/x/crypto/hkdf=/usr/local/go/pkg/linux_amd64/internal/x/crypto/hkdf.a
packagefile
internal/nettrace=/usr/local/go/pkg/linux_amd64/internal/nettrace.a
packagefile
internal/singleflight=/usr/local/go/pkg/linux_amd64/internal/singleflight.a
packagefile
internal/x/net/dns/dnsmessage=/usr/local/go/pkg/linux_amd64/internal/x/net/dns/dnsmessage.a
packagefile regexp/syntax=/usr/local/go/pkg/linux_amd64/regexp/syntax.a
packagefile
net/http/httptest=/usr/local/go/pkg/linux_amd64/net/http/httptest.a
packagefile
github.com/xeipuuv/gojsonpointer=/home/nsaboo/.cache/go-build/31/3197b05a0ff02d853a0f2cab4c0c225e55795d18820892a781d67f0633a5596c-d
packagefile
text/template/parse=/usr/local/go/pkg/linux_amd64/text/template/parse.a
packagefile crypto/dsa=/usr/local/go/pkg/linux_amd64/crypto/dsa.a
packagefile
crypto/x509/pkix=/usr/local/go/pkg/linux_amd64/crypto/x509/pkix.a
packagefile
internal/x/crypto/cryptobyte/asn1=/usr/local/go/pkg/linux_amd64/internal/x/crypto/cryptobyte/asn1.a
packagefile
github.com/aws/aws-sdk-go/internal/sdkrand=/home/nsaboo/.cache/go-build/05/050e791de52c8b8b43ae00cb91f838abb8f3da6d2c40cebca9a0465b5fc8565c-d
packagefile
net/http/httputil=/usr/local/go/pkg/linux_amd64/net/http/httputil.a
packagefile os/exec=/usr/local/go/pkg/linux_amd64/os/exec.a
packagefile
github.com/aws/aws-sdk-go/service/sts=/home/nsaboo/.cache/go-build/4b/4b6c32b559c354cbe04d9f5a8b86dd8d567d5d510c789c871a60b1500927f002-d
packagefile
github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds=/home/nsaboo/.cache/go-build/4b/4beb08b5e7500b1df282274544a616bbe426f4257fc9c93283ae41ebe57b2040-d
packagefile
github.com/aws/aws-sdk-go/aws/credentials/endpointcreds=/home/nsaboo/.cache/go-build/7e/7e4935b07745b5f655e8c4c9835ae48944b4c4c8e51e75abc10584dc21ba03f6-d
packagefile
github.com/aws/aws-sdk-go/aws/ec2metadata=/home/nsaboo/.cache/go-build/65/6582e05be8248bca6d6d1cab0c3abb630129e2cdf2eab9d8aa9463d8481dd851-d
packagefile
github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath=/home/nsaboo/.cache/go-build/34/3457b207d044e42bf0024ffa4ff402239d766fc0d66bf397833d01bddf3b4003-d
packagefile hash/crc32=/usr/local/go/pkg/linux_amd64/hash/crc32.a
packagefile
github.com/aws/aws-sdk-go/private/protocol/query/queryutil=/home/nsaboo/.cache/go-build/2c/2c50a7fbb41c8d0732a81808b3d21038012480821b75c594d03ecdbe28693cb3-d
packagefile
internal/x/text/secure/bidirule=/usr/local/go/pkg/linux_amd64/internal/x/text/secure/bidirule.a
packagefile
internal/x/text/unicode/bidi=/usr/local/go/pkg/linux_amd64/internal/x/text/unicode/bidi.a
packagefile
internal/x/text/unicode/norm=/usr/local/go/pkg/linux_amd64/internal/x/text/unicode/norm.a
packagefile
mime/quotedprintable=/usr/local/go/pkg/linux_amd64/mime/quotedprintable.a
packagefile
crypto/internal/subtle=/usr/local/go/pkg/linux_amd64/crypto/internal/subtle.a
packagefile
crypto/internal/randutil=/usr/local/go/pkg/linux_amd64/crypto/internal/randutil.a
packagefile
internal/x/crypto/internal/chacha20=/usr/local/go/pkg/linux_amd64/internal/x/crypto/internal/chacha20.a
packagefile
internal/x/crypto/poly1305=/usr/local/go/pkg/linux_amd64/internal/x/crypto/poly1305.a
packagefile flag=/usr/local/go/pkg/linux_amd64/flag.a
packagefile
github.com/aws/aws-sdk-go/internal/sdkuri=/home/nsaboo/.cache/go-build/e9/e9ed569988250013b182ac11d21254bc422e26786fd3b1f7ac9dd8f1b478b0ec-d
packagefile
internal/x/text/transform=/usr/local/go/pkg/linux_amd64/internal/x/text/transform.a
EOF
mkdir -p $WORK/b001/exe/
cd .
/usr/local/go/pkg/tool/linux_amd64/link -o $WORK/b001/exe/a.out -importcfg
$WORK/b001/importcfg.link -buildmode=exe
-buildid=zIeCbWbE56A7sSSQjz_x/OCUlDKDf0mOpjlb1TGSR/UE3EP0Kiqy9vS1rkRIvA/zIeCbWbE56A7sSSQjz_x
-extld=gcc
/home/nsaboo/.cache/go-build/5d/5db621e46792693a43911a7fc99e450f7198b1a62956677a4a47f7f1a8ebc0b2-d
/usr/local/go/pkg/tool/linux_amd64/buildid -w $WORK/b001/exe/a.out #
internal
mv $WORK/b001/exe/a.out main
rm -r $WORK/b001/

Following is my make file:
***********************************************
.PHONY: all clean

all: main

main: syslog-node.so main.go ./lib/syslog-node1.h ./lib/*
go build -v -x main.go

syslog-node.so: ./lib/syslog-node.c ./lib/syslog-node1.h
gcc -L/usr/local/lib -lsyslog-ng -o syslog-node.so
-L/usr/local/lib/syslog-ng -ldbparser -c `pkg-config --libs --cflags
glib-2.0` -I/usr/local/include/syslog-ng/ -I./lib/syslog-ng-3.6.2/ -I.
-I/usr/local/include/eventlog/ ./lib/syslog-node.c

clean:
rm main
rm syslog-node.so

*************************************************

Thanks,
Nitish

On Sat, Jun 8, 2019 at 11:54 AM Ian Lance Taylor <i...@golang.org> wrote:

> On Fri, Jun 7, 2019 at 8:59 PM Nitish Saboo <nitish.sabo...@gmail.com>
> wrote:
> >
> > I have tried the following three scenarios and one of them compiles
> successfully that is with -L option.
> > Let me know If am I missing something here .
>
> You should use what works, although I don't know why it works.  I
> would have thought that that -L option would simply be ignored.  What
> happens if you leave it out entirely?
>
> Ian
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CALjMrq4WHa%3D%2BoKeHNDWasGvpwwZKZUmnJcD45LL_5qaZVJuvGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to