h3rald / hastysite

A small but powerful static site generator
https://hastysite.h3rald.com
MIT License
72 stars 2 forks source link

Use pcre2 on FreeBSD #6

Closed lbartoletti closed 2 years ago

lbartoletti commented 2 years ago

First, thanks for this static site generator in nim!

FreeBSD have two versions of PCRE in package (pcre: 8.45 and pcre2: 10.39).

In order to build hastysite, I have to use pcre2, otherwise I get linker errors like this:

/usr/local/bin/x86_64-unknown-freebsd13.0-ld: /home/xxx/.cache/nim/hastysite_r/stdlib_nre.nim.c.o: in function `replace__impureZnre_5941':
stdlib_nre.nim.c:(.text+0x48ae): undefined reference to `pcre_config'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
h3rald commented 2 years ago

Ohhh OK! I never tested it on FreeBSD! Fine by me, thanks a lot!