fix: hard-code cgo flags

This commit is contained in:
Igor Sirotin 2025-09-29 22:03:14 +01:00
parent e662e19ae5
commit a9642ccf75
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A
2 changed files with 4 additions and 4 deletions

View File

@ -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 ./...

View File

@ -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>