You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried building confluentinc/cli on FreeBSD 13.1-RELEASE-p3 and found this:
The Makefile is GNU Make specific (not very unusual). The README.md says to use make deps and make build and the Makefile also calls make. Replacing make with gmake in both the README.md and Makefile fixes that. The gmake command is also available on Linux so this should make this more portable without requiring FreeBSD specific things.
For the cgo dependency for rdkafa I needed to do a pkg install librdkafka to get librdkafka 1.9.2.
Then to build I used gmake CGO_CFLAGS=`pkg-config --cflags rdkafka` CGO_LDFLAGS=`pkg-config --libs rdkafka` TAGS='dynamic' build. Afterwards I noticed that building with gmake TAGS='dynamic' build also works, but I'm not sure if that also works for fresh builds.
On many platforms `make` is GNU Make, but not on all. On FreeBSD it isn't. As the `Makefile` is GNU Make specific let's use `gmake` to allow this to work on more platforms.
Issue: confluentinc#1674
Hi,
I tried building confluentinc/cli on FreeBSD 13.1-RELEASE-p3 and found this:
The
Makefile
is GNU Make specific (not very unusual). TheREADME.md
says to usemake deps
andmake build
and theMakefile
also callsmake
. Replacingmake
withgmake
in both theREADME.md
andMakefile
fixes that. Thegmake
command is also available on Linux so this should make this more portable without requiring FreeBSD specific things.For the cgo dependency for
rdkafa
I needed to do apkg install librdkafka
to get librdkafka 1.9.2.Then to build I used
gmake CGO_CFLAGS=`pkg-config --cflags rdkafka` CGO_LDFLAGS=`pkg-config --libs rdkafka` TAGS='dynamic' build
. Afterwards I noticed that building withgmake TAGS='dynamic' build
also works, but I'm not sure if that also works for fresh builds.The text was updated successfully, but these errors were encountered: