Skip to content

Instantly share code, notes, and snippets.

@clinta
Created March 21, 2017 12:58
Show Gist options
  • Save clinta/e9e300a33546b0a78489fb1052ffb9c0 to your computer and use it in GitHub Desktop.
Save clinta/e9e300a33546b0a78489fb1052ffb9c0 to your computer and use it in GitHub Desktop.
Building Dash for FreeBSD
#!/bin/csh
setenv BDB_CPPFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv BDB_LIBS "-ldb_cxx-4.8"
setenv CFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv CXXFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv CPPFLAGS "-I/usr/local/include -I/usr/local/include/db48"
setenv LDFLAGS "-L/usr/local/lib -L/usr/local/lib/db48"
git clean -x -f -d
./autogen.sh
./configure --enable-debug --with-gui=no --disable-shared --with-pic --without-miniupnpc --disable-tests --enable-hardening
# Workaround 1277
sed -i '' 's/^LEVELDB_TARGET_FLAGS = .*$/LEVELDB_TARGET_FLAGS = -DOS_FREEBSD/' src/Makefile
gmake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment