mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-07 08:23:06 +00:00
fix: hard-code cgo flags
This commit is contained in:
parent
e662e19ae5
commit
a9642ccf75
@ -37,9 +37,6 @@ build-libwaku:
|
||||
@cd $(NWAKU_DIR) && make libwaku
|
||||
|
||||
# Build Waku Go Bindings
|
||||
|
||||
build: export CGO_CFLAGS = "-I${NWAKU_DIR}"
|
||||
build: export CGO_LDFLAGS = "-L${NWAKU_DIR} -lwaku -L${NWAKU_DIR} -Wl,-rpath,${NWAKU_DIR}"
|
||||
build: libwaku
|
||||
@echo "Building Waku Go Bindings..."
|
||||
go build ./...
|
||||
|
||||
@ -1,7 +1,10 @@
|
||||
package waku
|
||||
|
||||
/*
|
||||
#include "libwaku.h"
|
||||
#cgo LDFLAGS: -L../third_party/nwaku -lwaku
|
||||
#cgo LDFLAGS: -L../third_party/nwaku -Wl,-rpath,../third_party/nwaku
|
||||
|
||||
#include "../third_party/nwaku/libwaku.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user