On Fri, Jun 7, 2019 at 9:53 AM Nitish Saboo <nitish.sabo...@gmail.com> wrote:
>
> > //#cgo CFLAGS: -I./syslog-ng-3.6.2/
> > //#cgo LDFLAGS: -L$(SRCDIR)/syslog-node.so.  <<<<<<<<<<<<<<<<<
>
> Is this what you are saying?
> Btw..do I need to keep -L flag?

I'm suggesting that you try

//#cgo LDFLAGS: ${SRCDIR}/syslog-node.so

Not sure where the -L flag came from.  The -L flag takes a directory;
you are naming a file.

Ian

> On Fri, 7 Jun 2019, 19:07 Ian Lance Taylor, <i...@golang.org> wrote:
>>
>> On Fri, Jun 7, 2019 at 4:03 AM Nitish Saboo <nitish.sabo...@gmail.com> wrote:
>> >
>> > //#cgo CFLAGS: -I./syslog-ng-3.6.2/
>> > //#cgo LDFLAGS: syslog-node.so.  <<<<<<<<<<<<<<<<<
>>
>> Try using ${SRCDIR}/syslog-node.so, since you are creating the shared
>> library in the source directory.
>>
>> 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/CAOyqgcVmVbXt7w1tgdGGn0zy4YTyHkG8hyqNzJri7ESbbk_56w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to