Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow goaccess to be cross compiled. #2038

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dist_noinst_DATA = \
resources/js/d3.v3.min.js \
resources/js/hogan.min.js

noinst_PROGRAMS = bin2c
bin2c_SOURCES = src/bin2c.c
bin2c$(EXEEXT): src/bin2c.c
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@ $(LDFLAGS_FOR_BUILD)

BUILT_SOURCES = \
src/tpls.h \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Distro | NCurses | GeoIP (opt) |GeoIP2 (opt)
**Gentoo** | sys-libs/ncurses | dev-libs/geoip | dev-libs/libmaxminddb | dev-libs/openssl
**Slackware** | ncurses | GeoIP | libmaxminddb | openssl

**Note**: You may need to install build tools like `gcc`, `autoconf`,
**Note**: You may need to install build tools like `gcc`, `autoconf`, `autoconf-archive`
`gettext`, `autopoint` etc for compiling/building software from source. e.g.,
`base-devel`, `build-essential`, `"Development Tools"`.

Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ AC_CONFIG_HEADERS([src/config.h])
AC_PROG_CC([cc gcc clang])
AM_PROG_CC_C_O

# Find build compiler for the cross compilation case
AX_CC_FOR_BUILD

# Check for programs
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19])
Expand Down